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

From: Wenjie Qi

Date: Tue Aug 25 2026 - 01:44:27 EST


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.