From: Ye Bin <yebin10@huawei.com>
In order to better analyze the issue of file system uninstallation caused
by kernel module opening files, it is necessary to perform dentry recycling
on a single file system. But now, apart from global dentry recycling, it is
not supported to do dentry recycling on a single file system separately.
This feature has usage scenarios in problem localization scenarios.At the
same time, it also provides users with a slightly fine-grained
pagecache/entry recycling mechanism.
This patchset supports the recycling of pagecache/entry for individual file
systems.
Ye Bin (3):
vfs: introduce shrink_icache_sb() helper
sysctl: add support for drop_caches for individual filesystem
Documentation: add instructions for using 'drop_fs_caches sysctl'
sysctl
Documentation/admin-guide/sysctl/vm.rst | 27 ++++++++++++++++
fs/drop_caches.c | 43 +++++++++++++++++++++++++
fs/inode.c | 17 ++++++++++
fs/internal.h | 1 +
include/linux/mm.h | 2 ++
kernel/sysctl.c | 9 ++++++
6 files changed, 99 insertions(+)
--
2.31.1