Re: [PATCH v2 05/12] f2fs: cache: use meta cache

From: Chao Yu

Date: Tue Aug 25 2026 - 02:37:48 EST


will fix, thanks,

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

case META:
nr_to_write = BIO_MAX_VECS;
break;

and in `f2fs_sync_meta_caches()`:

nwritten += sbi->blocksize;
prev = entry->index;
if (unlikely(nwritten >= nr_to_write))
break;

`adjust_flush_cache_number()` returns `BIO_MAX_VECS` for META, while
`nwritten` advances by `sbi->blocksize` for each entry before the comparison.

Are `nr_to_write` and `nwritten` intended to be entry counts or byte counts in
this path?