Re: [f2fs-dev] [PATCH v3 09/12] f2fs: cache: use compress cache
From: Chao Yu
Date: Fri Aug 28 2026 - 08:01:10 EST
On 8/27/26 04:04, Daeho Jeong wrote:
On Tue, Aug 25, 2026 at 6:03 AM Chao Yu via Linux-f2fs-devel
+ f2fs_lock_cache(entry);
- if (ino != folio_get_f2fs_data(folio)) {
- folio_unlock(folio);
- continue;
- }
-
- generic_error_remove_folio(mapping, folio);
- folio_unlock(folio);
+ if (!f2fs_is_compress_cache(entry)) {
How is this possible?
or if (!entry->cache)?
I suffer a panic from f2fs_bug_on(sbi, !f2fs_is_compress_cache(entry)) here,
it may suffer race condition w/ shrinker.
Thanks,