diff options
| author | Kaixiong Yu <[email protected]> | 2025-01-11 07:07:46 +0000 |
|---|---|---|
| committer | Joel Granados <[email protected]> | 2025-02-07 15:53:04 +0000 |
| commit | c8c3fd194678e99460f22fffa170f7628e3e171c (patch) | |
| tree | 87cb96f137ff3c3d8fac802cd8d7571273b8aff5 | |
| parent | fs: drop_caches: move sysctl to fs/drop_caches.c (diff) | |
| download | kernel-c8c3fd194678e99460f22fffa170f7628e3e171c.tar.gz kernel-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 <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Acked-by: Anna Schumaker <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Joel Granados <[email protected]>
| -rw-r--r-- | net/sunrpc/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 04534ea537c8..5a827afd8e3b 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -489,7 +489,7 @@ static unsigned long rpcauth_cache_shrink_count(struct shrinker *shrink, struct shrink_control *sc) { - return number_cred_unused * sysctl_vfs_cache_pressure / 100; + return number_cred_unused; } static void |
