diff options
| author | Seongjae Jeong <jsjlee1020@gmail.com> | 2026-10-14 11:26:29 +0000 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-10-19 15:32:45 +0000 |
| commit | 6d1f622b9c069378cdb83088be2b15a9b480b8a3 (patch) | |
| tree | ab59de98010ddc66fc70534b449ee0ff2d571045 /tools/lib/python | |
| parent | 894ca8b856668a82426dbd0a0042b61541a1a9ec (diff) | |
f2fs: fix submit accounting for IPU writeback
f2fs_write_cache_pages() uses the submitted count, which is set to
fio.submitted in f2fs_write_single_data_page(), to update nwritten
and decrement wbc->nr_to_write.
In the OPU path, f2fs_submit_page_write() sets fio->submitted to 1.
However, in the IPU path, fio->submitted is never set and remains zero.
As a result, successful IPU writes are not accounted for.
This can cause asynchronous writeback to continue beyond its budget.
Set fio->submitted in f2fs_inplace_write_data() after a page is
successfully merged into a bio or submitted, so that successful
IPU writes are included in the writeback accounting.
Cc: stable@kernel.org
Fixes: d68f735b3bc9 ("f2fs: check io submission more precisely")
Signed-off-by: Seongjae Jeong <jsjlee1020@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
