aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iops.c
diff options
context:
space:
mode:
authorDave Chinner <[email protected]>2021-08-25 02:13:04 +0000
committerDarrick J. Wong <[email protected]>2021-08-25 02:13:04 +0000
commitf38a032b165d812b0ba8378a5cd237c0888ff65f (patch)
tree87f68c1c5c228463a34bf898281d2943b7a11136 /fs/xfs/xfs_iops.c
parentxfs: only set IOMAP_F_SHARED when providing a srcmap to a write (diff)
downloadkernel-f38a032b165d812b0ba8378a5cd237c0888ff65f.tar.gz
kernel-f38a032b165d812b0ba8378a5cd237c0888ff65f.zip
xfs: fix I_DONTCACHE
Yup, the VFS hoist broke it, and nobody noticed. Bulkstat workloads make it clear that it doesn't work as it should. Fixes: dae2f8ed7992 ("fs: Lift XFS_IDONTCACHE to the VFS layer") Signed-off-by: Dave Chinner <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_iops.c')
-rw-r--r--fs/xfs/xfs_iops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
index 0ff0cca94092..a607d6aca5c4 100644
--- a/fs/xfs/xfs_iops.c
+++ b/fs/xfs/xfs_iops.c
@@ -1344,7 +1344,7 @@ xfs_setup_inode(
gfp_t gfp_mask;
inode->i_ino = ip->i_ino;
- inode->i_state = I_NEW;
+ inode->i_state |= I_NEW;
inode_sb_list_add(inode);
/* make the inode look hashed for the writeback code */