]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs: remove the xfs_trans_header_t typedef
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Dec 2025 15:02:46 +0000 (16:02 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 8 Dec 2025 17:03:15 +0000 (18:03 +0100)
Source kernel commit: 05f17dcbfd5dbe309af310508d8830ac4e0c5d4c

There are almost no users of the typedef left, kill it and switch the
remaining users to use the underlying struct.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
libxfs/xfs_log_format.h
libxfs/xfs_log_recover.h

index 367dfdece9be18ab7deb747130798bbdfa1a83d6..2c3c5e67f78a6da10cc4ec02fa30b60bb6582c26 100644 (file)
@@ -212,12 +212,12 @@ typedef struct xfs_log_iovec {
  * Do not change the below structure without redoing the code in
  * xlog_recover_add_to_trans() and xlog_recover_add_to_cont_trans().
  */
-typedef struct xfs_trans_header {
+struct xfs_trans_header {
        uint            th_magic;               /* magic number */
        uint            th_type;                /* transaction type */
        int32_t         th_tid;                 /* transaction id (unused) */
        uint            th_num_items;           /* num items logged by trans */
-} xfs_trans_header_t;
+};
 
 #define        XFS_TRANS_HEADER_MAGIC  0x5452414e      /* TRAN */
 
index 95de23095030699fd40cf13edfdb3112cca1dedc..9e712e62369c47627a7dac7cd293128a31451571 100644 (file)
@@ -111,7 +111,7 @@ struct xlog_recover_item {
 struct xlog_recover {
        struct hlist_node       r_list;
        xlog_tid_t              r_log_tid;      /* log's transaction id */
-       xfs_trans_header_t      r_theader;      /* trans header for partial */
+       struct xfs_trans_header r_theader;      /* trans header for partial */
        int                     r_state;        /* not needed */
        xfs_lsn_t               r_lsn;          /* xact lsn */
        struct list_head        r_itemq;        /* q for items */