]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: don't reset i_delayed_blks in xfs_iread
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Aug 2020 20:32:06 +0000 (16:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2020 20:32:06 +0000 (16:32 -0400)
Source kernel commit: 7f0290123506e2b248fe06fa7cdc17c1b5b603b5

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_inode_buf.c

index 8e7434b8a9e275d3270521f3e2810c9b04f5c2b9..73c8f879c1b66c82d9d0100504a2162b69eac009 100644 (file)
@@ -660,8 +660,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