diff options
author | Jeff Layton <[email protected]> | 2022-11-02 14:44:50 -0400 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2022-12-10 10:59:20 -0500 |
commit | 22ae4c114f77b55a4c5036e8f70409a0799a08f8 (patch) | |
tree | 1f39356c9a680ac1729c956011f7982d48ab2a22 /tools/perf/scripts/python/Perf-Trace-Util | |
parent | 8214118589881b2d390284410c5ff275e7a5e03c (diff) |
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 <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions