mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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:
parent
0bac5a264d
commit
3bc6d3470f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user