diff options
author | NeilBrown <neilb@suse.de> | 2025-02-18 18:39:34 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-03-10 16:11:06 +0300 |
commit | 8017afd66cbc98b838ac6d5b469e733a608a1211 (patch) | |
tree | f9f7860b303fbda973c98bcc2ccb971d0ac4d487 /rust/helpers/helpers.c | |
parent | e8e6f5cdbc2324dca40aa43242bc7b058fecf1a1 (diff) | |
download | linux-8017afd66cbc98b838ac6d5b469e733a608a1211.tar.xz |
nfsd: filecache: use list_lru_walk_node() in nfsd_file_gc()
list_lru_walk() is only useful when the aim is to remove all elements
from the list_lru. It will repeatedly visit rotated elements of the
first per-node sublist before proceeding to subsequent sublists.
This patch changes nfsd_file_gc() to use list_lru_walk_node() and
list_lru_count_node() on each NUMA node.
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions