From: Christoph Hellwig Date: Fri, 5 Dec 2025 15:02:46 +0000 (+0100) Subject: xfs: remove the xfs_trans_header_t typedef X-Git-Tag: v6.18.0~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea57d274ccb6183b7546a1fc55d8d966a028a8fd;p=xfsprogs-dev.git xfs: remove the xfs_trans_header_t typedef 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 Reviewed-by: Darrick J. Wong Signed-off-by: Carlos Maiolino Reviewed-by: Christoph Hellwig Signed-off-by: Andrey Albershteyn --- diff --git a/libxfs/xfs_log_format.h b/libxfs/xfs_log_format.h index 367dfdec..2c3c5e67 100644 --- a/libxfs/xfs_log_format.h +++ b/libxfs/xfs_log_format.h @@ -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 */ diff --git a/libxfs/xfs_log_recover.h b/libxfs/xfs_log_recover.h index 95de2309..9e712e62 100644 --- a/libxfs/xfs_log_recover.h +++ b/libxfs/xfs_log_recover.h @@ -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 */