diff options
author | Zhiguo Niu <zhiguo.niu@unisoc.com> | 2025-02-10 09:24:09 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-02-10 17:03:19 +0000 |
commit | bd409934c0619a6c3507891844aeb0c0dca69e18 (patch) | |
tree | 0308b0cd7b49ea838ad2c18fe2f06b6830c5060d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | eb85c2410d6f581e957cd03a644ff6ddbe592af9 (diff) |
f2fs: fix to return SHRINK_EMPTY if no objects to free
Quoted from include/linux/shrinker.h
"count_objects should return the number of freeable items in the cache. If
there are no objects to free, it should return SHRINK_EMPTY, while 0 is
returned in cases of the number of freeable items cannot be determined
or shrinker should skip this cache for this time (e.g., their number
is below shrinkable limit)."
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions