xfs: don't reset i_delayed_blks in xfs_iread
authorChristoph Hellwig <hch@lst.de>
Thu, 14 May 2020 21:01:18 +0000 (14:01 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 19 May 2020 16:40:57 +0000 (09:40 -0700)
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>
fs/xfs/libxfs/xfs_inode_buf.c

index 3aac22e892985149dfd0a44eecf27acfc97a5873..329534eebbdcca89f6b61696925d7863a98d1dc9 100644 (file)
@@ -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