mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 08:39:08 -04: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user