Re: [PATCH v2 03/12] f2fs: cache: introduce shrinker
From: Wenjie Qi
Date: Tue Aug 25 2026 - 01:42:21 EST
Hi Chao,
> static unsigned long __count_cache(struct f2fs_sb_info *sbi)
> {
> return sbi->meta_blocks.num_entries +
> sbi->node_blocks.num_entries;
> }
and the scan path includes:
> freed += f2fs_do_shrink_cache(COMPRESS_CACHE(sbi),
> nr_to_scan - freed);
The count path includes the meta and node caches, while the scan path also
includes `COMPRESS_CACHE`.
Is `COMPRESS_CACHE` intentionally excluded from `__count_cache()` even though
`f2fs_shrink_cache()` scans it?