Re: [f2fs-dev] [PATCH v2] f2fs: wait for inode record work before clearing ino bitmaps

From: Chao Yu

Date: Wed Sep 02 2026 - 04:44:06 EST


On 9/2/26 16:16, Wenjie Qi wrote:
> Hi Chao,
>
> It does not miss UPDATE_INO. The mode argument only selects whether to
> wait: both APPEND_INO and UPDATE_INO call
> flush_workqueue(sbi->evict_wq), and both updates are queued on the same
> eviction workqueue. Therefore, one call with APPEND_INO also drains
> pending UPDATE_INO work. A second call with UPDATE_INO would flush the
> same queue again.

Alright, how about call flush_workqueue(sbi->evict_wq) directly and drop
f2fs_wait_for_inode_record()?

Thanks,

>
> Thanks,
> Wenjie