Re: [PATCH v2 03/12] f2fs: cache: introduce shrinker
From: Chao Yu
Date: Tue Aug 25 2026 - 02:36:23 EST
On 8/25/26 13:42, Wenjie Qi wrote:
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?
Oh, I missed to add it, will fix.
Thanks,