Skip to content

add support for drop_caches for individual filesystem

Ye Bin linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vfs: introduce shrink_icache_sb() helperfs/inode.c fs/internal.h+18 -01 reply
2/3sysctl: add support for drop_caches for individual filesystemfs/drop_caches.c include/linux/mm.h kernel/sysctl.c+54 -08 replies
3/3Documentation: add instructions for using 'drop_fs_caches sysctl' sysctlDocumentation/admin-guide/sysctl/vm.rst+27 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] add support for drop_caches for individual filesystem

From: Ye Bin <[email protected]>

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(+)
Signature · 1 line
2.31.1