diff options
| author | Chao Yu <chao@kernel.org> | 2026-09-17 15:33:34 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-09-18 01:33:15 +0000 |
| commit | fe1c66b4a6e1297e36ae3784d9b7d7852b1891f2 (patch) | |
| tree | 984823cc834f60fc7cca25b5509580318a63acf8 /tools/lib/python/kdoc/python_version.py | |
| parent | 20fccd31926bffb4e1a9d8b4ad36b3fc6fb7da89 (diff) | |
f2fs: cache: introduce shrinker
This patch integrates the metadata cache into the F2FS memory shrinker
subsystem to reclaim clean, unreferenced cached blocks under memory
pressure.
It implements f2fs_shrink_cache() using a 3-phase cache reclamin method:
1. isolate clean entries from lru list
2. truncate from radix tree under lock
3. splice un-reclaimed entries back
And hooks the new interface into f2fs_shrink_count() and f2fs_shrink_scan().
Reviewed-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
