Re: [PATCH v2 07/12] f2fs: cache: use node cache

From: Wenjie Qi

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


Hi Chao,

> if (!f2fs_clear_cache_dirty(entry))
> goto continue_unlock;
>
> if (!__write_node_cache(entry, ...))
> ...

and in `__write_node_cache()`:

> if (unlikely(ni.blk_addr == NULL_ADDR)) {
> f2fs_cache_clear_uptodate(entry);
> dec_page_count(sbi, F2FS_DIRTY_NODES);
> ...
> return true;
> }

`f2fs_clear_cache_dirty()` clears the entry state bit but leaves the DIRTY
radix tag for the writeback transition. The `NULL_ADDR` return does not reach
that transition, while it clears UPTODATE and decrements the dirty-node count.

What clears the DIRTY radix tag when this already-truncated path returns?