Commit 05f17dcb authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Carlos Maiolino
Browse files

xfs: remove the xfs_trans_header_t typedef



There are almost no users of the typedef left, kill it and switch the
remaining users to use the underlying struct.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent eff86686
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */

+1 −1
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -3155,7 +3155,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);