]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: convert xfs_trans_header_t typdef to struct
authorAndrey Albershteyn <aalbersh@redhat.com>
Fri, 5 Dec 2025 15:01:50 +0000 (16:01 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 8 Dec 2025 17:03:15 +0000 (18:03 +0100)
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
libxfs/util.c
libxlog/xfs_log_recover.c

index 13b8297f73c97a0628593276d6c7bdfbf422ddb6..8dba3ef0c66139c7718edb803e3633007fa7dea0 100644 (file)
@@ -86,7 +86,7 @@ xfs_log_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);
index f46cb319779aec57afb34e0b0c1d3e51d8e819b1..83d12df65694a6c29142ee4c388f50aeb4798c3c 100644 (file)
@@ -1026,7 +1026,7 @@ xlog_recover_add_to_cont_trans(
                /* finish copying rest of trans header */
                xlog_recover_add_item(&trans->r_itemq);
                ptr = (char *) &trans->r_theader +
-                               sizeof(xfs_trans_header_t) - len;
+                               sizeof(struct xfs_trans_header) - len;
                memcpy(ptr, dp, len); /* d, s, l */
                return 0;
        }
@@ -1079,7 +1079,7 @@ xlog_recover_add_to_trans(
                        ASSERT(0);
                        return XFS_ERROR(EIO);
                }
-               if (len == sizeof(xfs_trans_header_t))
+               if (len == sizeof(struct xfs_trans_header))
                        xlog_recover_add_item(&trans->r_itemq);
                memcpy(&trans->r_theader, dp, len); /* d, s, l */
                return 0;