NFSD: Refactor nfsd_file_gc()

Refactor nfsd_file_gc() to use the new list_lru helper.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
Chuck Lever 2022-07-08 14:24:25 -04:00
parent 0bac5a264d
commit 3bc6d3470f

View File

@ -492,7 +492,11 @@ nfsd_file_lru_walk_list(struct shrink_control *sc)
static void
nfsd_file_gc(void)
{
nfsd_file_lru_walk_list(NULL);
LIST_HEAD(dispose);
list_lru_walk(&nfsd_file_lru, nfsd_file_lru_cb,
&dispose, LONG_MAX);
nfsd_file_gc_dispose_list(&dispose);
}
static void