nfsd: filecache: use list_lru_walk_node() in nfsd_file_gc()
authorNeilBrown <neilb@suse.de>
Tue, 18 Feb 2025 15:39:34 +0000 (10:39 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 10 Mar 2025 13:11:06 +0000 (09:11 -0400)
commit8017afd66cbc98b838ac6d5b469e733a608a1211
treef9f7860b303fbda973c98bcc2ccb971d0ac4d487
parente8e6f5cdbc2324dca40aa43242bc7b058fecf1a1
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>
fs/nfsd/filecache.c