diff options
author | 2025-01-11 15:07:46 +0800 | |
---|---|---|
committer | 2025-02-07 16:53:04 +0100 | |
commit | c8c3fd194678e99460f22fffa170f7628e3e171c (patch) | |
tree | 87cb96f137ff3c3d8fac802cd8d7571273b8aff5 /scripts/generate_rust_analyzer.py | |
parent | fs: drop_caches: move sysctl to fs/drop_caches.c (diff) | |
download | linux-rng-c8c3fd194678e99460f22fffa170f7628e3e171c.tar.xz linux-rng-c8c3fd194678e99460f22fffa170f7628e3e171c.zip |
sunrpc: simplify rpcauth_cache_shrink_count()
It is inappropriate to use sysctl_vfs_cache_pressure here.
The sysctl is documented as: This percentage value controls
the tendency of the kernel to reclaim the memory which is used
for caching of directory and inode objects.
So, simplify result of rpcauth_cache_shrink_count() to
"return number_cred_unused;".
Signed-off-by: Kaixiong Yu <yukaixiong@huawei.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Acked-by: Anna Schumaker <anna.schumaker@oracle.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions