summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_inode_buf.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-14 14:01:18 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2020-05-19 09:40:57 -0700
commit7f0290123506e2b248fe06fa7cdc17c1b5b603b5 (patch)
tree41354c8da01c642784d2c9d74ade254f1fafa52e /fs/xfs/libxfs/xfs_inode_buf.c
parent2d6051d4965308c3367bf5a2468dff969872a96e (diff)
xfs: don't reset i_delayed_blks in xfs_iread
i_delayed_blks is set to 0 in xfs_inode_alloc and can't have anything assigned to it until the inode is visible to the VFS. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_buf.c')
-rw-r--r--fs/xfs/libxfs/xfs_inode_buf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_buf.c b/fs/xfs/libxfs/xfs_inode_buf.c
index 3aac22e89298..329534eebbdc 100644
--- a/fs/xfs/libxfs/xfs_inode_buf.c
+++ b/fs/xfs/libxfs/xfs_inode_buf.c
@@ -663,8 +663,6 @@ xfs_iread(
if (error)
goto out_brelse;
- ip->i_delayed_blks = 0;
-
/*
* Mark the buffer containing the inode as something to keep
* around for a while. This helps to keep recently accessed