diff options
author | Christoph Hellwig <hch@lst.de> | 2021-03-29 20:11:40 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-04-07 23:37:03 +0200 |
commit | 6e73a545f91e128d8dd7da1769dca200225f5d82 (patch) | |
tree | 906751d5c19e819b264ee0fa00eda26a8de6a89e /fs/xfs/xfs_inode_item.c | |
parent | xfs: move the di_size field to struct xfs_inode (diff) | |
download | linux-6e73a545f91e128d8dd7da1769dca200225f5d82.tar.xz linux-6e73a545f91e128d8dd7da1769dca200225f5d82.zip |
xfs: move the di_nblocks field to struct xfs_inode
In preparation of removing the historic icinode struct, move the nblocks
field into the containing xfs_inode structure.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_inode_item.c')
-rw-r--r-- | fs/xfs/xfs_inode_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c index b16588283b7a..1d01cabc2db1 100644 --- a/fs/xfs/xfs_inode_item.c +++ b/fs/xfs/xfs_inode_item.c @@ -370,7 +370,7 @@ xfs_inode_to_log_dinode( to->di_mode = inode->i_mode; to->di_size = ip->i_disk_size; - to->di_nblocks = from->di_nblocks; + to->di_nblocks = ip->i_nblocks; to->di_extsize = from->di_extsize; to->di_nextents = xfs_ifork_nextents(&ip->i_df); to->di_anextents = xfs_ifork_nextents(ip->i_afp); |