Re: [PATCH] f2fs: fix termination of f2fs_sync_meta_caches()
From: Chao Yu
Date: Sun Oct 11 2026 - 06:37:47 EST
On 10/10/26 15:49, Seongjae Jeong wrote:
When __f2fs_write_meta_cache() returns false in f2fs_sync_meta_caches(),
the function only exits the inner loop instead of the entire
while loop. This leads to an unnecessary lookup of the next batch.
Also, when nwritten >= nr_to_write, only the inner loop terminates.
This allows the function to continue processing subsequent batches
after the writeback budget has been reached.
Terminate the entire while loop in both cases to avoid unnecessary
batch lookups and respect the writeback budget.
Signed-off-by: Seongjae Jeong <jsjlee1020@xxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
Thanks,