xfs: fix I_DONTCACHE
commitf38a032b16upstream. Yup, the VFS hoist broke it, and nobody noticed. Bulkstat workloads make it clear that it doesn't work as it should. Fixes:dae2f8ed79("fs: Lift XFS_IDONTCACHE to the VFS layer") Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Acked-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e32bb24281
commit
0a69f1f842
2 changed files with 3 additions and 2 deletions
|
|
@ -47,8 +47,9 @@ xfs_inode_alloc(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* VFS doesn't initialise i_mode! */
|
||||
/* VFS doesn't initialise i_mode or i_state! */
|
||||
VFS_I(ip)->i_mode = 0;
|
||||
VFS_I(ip)->i_state = 0;
|
||||
|
||||
XFS_STATS_INC(mp, vn_active);
|
||||
ASSERT(atomic_read(&ip->i_pincount) == 0);
|
||||
|
|
|
|||
|
|
@ -1328,7 +1328,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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue