]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: remove the xfs_trans_header_t typedef
authorChristoph Hellwig <hch@lst.de>
Thu, 22 May 2025 18:06:36 +0000 (20:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 23 May 2025 03:58:24 +0000 (05:58 +0200)
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>
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/libxfs/xfs_log_recover.h
fs/xfs/xfs_log.c

index 6cdcc6eef539102156af3418ecfbb0b442b0e2fa..e5e6f8c0408f78eb217d49c8b9858643cdc27676 100644 (file)
@@ -204,12 +204,12 @@ typedef union xlog_in_core2 {
  * 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 */
index 126367f5f99126abbaa6f01c7b22724a10ad18f6..3ed8ed9df2316854de063617618cf7cbd148e72c 100644 (file)
@@ -3061,7 +3061,7 @@ xlog_calc_unit_res(
 
        /* for trans header */
        unit_bytes += sizeof(struct xlog_op_header);
-       unit_bytes += sizeof(xfs_trans_header_t);
+       unit_bytes += sizeof(struct xfs_trans_header);
 
        /* for start-rec */
        unit_bytes += sizeof(struct xlog_op_header);