From: Andrey Albershteyn Date: Fri, 5 Dec 2025 15:01:50 +0000 (+0100) Subject: xfs: convert xfs_trans_header_t typdef to struct X-Git-Tag: v6.18.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ea0f7182fa9ba54838b3a79e218733896d9a8a8;p=thirdparty%2Fxfsprogs-dev.git xfs: convert xfs_trans_header_t typdef to struct Reviewed-by: Christoph Hellwig Signed-off-by: Andrey Albershteyn --- diff --git a/libxfs/util.c b/libxfs/util.c index 13b8297f..8dba3ef0 100644 --- a/libxfs/util.c +++ b/libxfs/util.c @@ -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); diff --git a/libxlog/xfs_log_recover.c b/libxlog/xfs_log_recover.c index f46cb319..83d12df6 100644 --- a/libxlog/xfs_log_recover.c +++ b/libxlog/xfs_log_recover.c @@ -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;