From 4ed3a0f6aedc612d8a5c7b472fcbda6be183017d Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 16 Nov 2017 22:11:34 -0600 Subject: [PATCH] xfs: remove the inode log format from the inode log item Source kernel commit: 2f251293b09065118d78ae4e883e5639cc22f94e xfs: remove the inode log format from the inode log item No need to keep the inode log format around all the time, we can easily generate it at iop_format time. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner [sandeen: matching change in userspace xfs_trans.h] Signed-off-by: Eric Sandeen --- include/xfs_trans.h | 1 - libxfs/logitem.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/xfs_trans.h b/include/xfs_trans.h index 22931cd3f..353556862 100644 --- a/include/xfs_trans.h +++ b/include/xfs_trans.h @@ -41,7 +41,6 @@ typedef struct xfs_inode_log_item { unsigned short ili_flags; /* misc flags */ unsigned int ili_fields; /* fields to be logged */ unsigned int ili_last_fields; /* fields when flushed*/ - xfs_inode_log_format_t ili_format; /* logged structure */ } xfs_inode_log_item_t; typedef struct xfs_buf_log_item { diff --git a/libxfs/logitem.c b/libxfs/logitem.c index 466b44219..4dcc506dc 100644 --- a/libxfs/logitem.c +++ b/libxfs/logitem.c @@ -165,9 +165,4 @@ xfs_inode_item_init( iip->ili_item.li_type = XFS_LI_INODE; iip->ili_item.li_mountp = mp; iip->ili_inode = ip; - iip->ili_format.ilf_type = XFS_LI_INODE; - iip->ili_format.ilf_ino = ip->i_ino; - iip->ili_format.ilf_blkno = ip->i_imap.im_blkno; - iip->ili_format.ilf_len = ip->i_imap.im_len; - iip->ili_format.ilf_boffset = ip->i_imap.im_boffset; } -- 2.47.2