]> git.baikalelectronics.ru Git - kernel.git/commit
fs: Introduce DCACHE_DONTCACHE
authorIra Weiny <ira.weiny@intel.com>
Thu, 30 Apr 2020 14:41:37 +0000 (07:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 13 May 2020 15:44:35 +0000 (08:44 -0700)
commitf163640886d34f39fd5284dd6c59aa9c20924bf3
tree8b5c7c07983cd102b7ce5e41858fb6f90e284258
parent3d7ef16104e8af16b03eac02a09b38f2417664f1
fs: Introduce DCACHE_DONTCACHE

DCACHE_DONTCACHE indicates a dentry should not be cached on final
dput().

Also add a helper function to mark DCACHE_DONTCACHE on all dentries
pointing to a specific inode when that inode is being set I_DONTCACHE.

This facilitates dropping dentry references to inodes sooner which
require eviction to swap S_DAX mode.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/dcache.c
fs/xfs/xfs_icache.c
include/linux/dcache.h
include/linux/fs.h