Searched hist:"22 ae4c114f77b55a4c5036e8f70409a0799a08f8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/nfsd/ |
H A D | filecache.c | diff 22ae4c114f77b55a4c5036e8f70409a0799a08f8 Wed Nov 02 13:44:50 CDT 2022 Jeff Layton <jlayton@kernel.org> nfsd: fix up the filecache laundrette scheduling
We don't really care whether there are hashed entries when it comes to scheduling the laundrette. They might all be non-gc entries, after all. We only want to schedule it if there are entries on the LRU.
Switch to using list_lru_count, and move the check into nfsd_file_gc_worker. The other callsite in nfsd_file_put doesn't need to count entries, since it only schedules the laundrette after adding an entry to the LRU.
Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
|