[PATCH 25/33] xfs: convert xfs_trans_header_t typdef to struct

Andrey Albershteyn
2025-12-03T19:10:13Z

libxfs/util.c | 2 +-
libxlog/xfs_log_recover.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libxfs/util.c b/libxfs/util.c
index 13b8297f73..8dba3ef0c6 100644
--- a/libxfs/util.c
+++ b/libxfs/util.c
@@ -86,7 +86,7 @@

/* 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 f46cb31977..83d12df656 100644
--- a/libxlog/xfs_log_recover.c
+++ b/libxlog/xfs_log_recover.c
@@ -1026,7 +1026,7 @@
/* 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 @@
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;

--
- Andrey