mbox series

[0/3] add support for drop_caches for individual filesystem

Message ID 20241010112543.1609648-1-yebin@huaweicloud.com (mailing list archive)
Headers show
Series add support for drop_caches for individual filesystem | expand

Message

yebin Oct. 10, 2024, 11:25 a.m. UTC
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(+)