summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2025-02-18 18:39:34 +0300
committerChuck Lever <chuck.lever@oracle.com>2025-03-10 16:11:06 +0300
commit8017afd66cbc98b838ac6d5b469e733a608a1211 (patch)
treef9f7860b303fbda973c98bcc2ccb971d0ac4d487 /rust/helpers/helpers.c
parente8e6f5cdbc2324dca40aa43242bc7b058fecf1a1 (diff)
downloadlinux-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