projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bac5a2
)
NFSD: Refactor nfsd_file_gc()
author
Chuck Lever
<chuck.lever@oracle.com>
Fri, 8 Jul 2022 18:24:25 +0000
(14:24 -0400)
committer
Chuck Lever
<chuck.lever@oracle.com>
Sat, 30 Jul 2022 00:09:48 +0000
(20:09 -0400)
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>
fs/nfsd/filecache.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/filecache.c
b/fs/nfsd/filecache.c
index af22d9e34db5f10a530c860e156ea880fe1fdc94..f5e9d9f72d5d5af91bdc4ae08e6e4483a5228217 100644
(file)
--- a/
fs/nfsd/filecache.c
+++ b/
fs/nfsd/filecache.c
@@
-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