]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove the inode log format from the inode log item
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Nov 2017 04:11:34 +0000 (22:11 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:11:34 +0000 (22:11 -0600)
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 <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
[sandeen: matching change in userspace xfs_trans.h]
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_trans.h
libxfs/logitem.c

index 22931cd3f3a0d871ab880ff9001201a0f8d3b67c..353556862787cb9ef975920ec0972a4be0e37a77 100644 (file)
@@ -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 {
index 466b442195bcd9b257afea481eb8e6d11eeb8014..4dcc506dcdc8e9f6f39f107bffec841288354fbf 100644 (file)
@@ -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;
 }