Re: [PATCH v2 09/12] f2fs: cache: use compress cache

From: Chao Yu

Date: Tue Aug 25 2026 - 02:42:19 EST


On 8/25/26 13:43, Wenjie Qi wrote:
Hi Chao,

entry = f2fs_grab_cache(COMPRESS_CACHE(sbi), blkaddr,
F2FS_CACHE_LOCK_CREATE);
if (IS_ERR(entry))
return;

entry->ino = ino;

and inode invalidation reads:

if (IS_COMPRESS_CACHE(cache) && entry->ino != ino)
continue;

A newly created entry is inserted into the radix tree before
`f2fs_grab_cache()` acquires its entry lock and returns. Its initial `ino` is
zero, and inode invalidation reads `entry->ino` without taking that lock.

Right, better to not change original logic.

Thanks,