mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
f2fs: fix to account IO correctly for cgroup writeback
[ Upstream commit78efac537d] Now, we have supported cgroup writeback, it depends on correctly IO account of specified filesystem. But in commitd1b3e72d54("f2fs: submit bio of in-place-update pages"), we split write paths from f2fs_submit_page_mbio() to two: - f2fs_submit_page_bio() for IPU path - f2fs_submit_page_bio() for OPU path But still we account write IO only in f2fs_submit_page_mbio(), result in incorrect IO account, fix it by adding missing IO account in IPU path. Fixes:d1b3e72d54("f2fs: submit bio of in-place-update pages") Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5151f4407d
commit
64c90d9c15
|
|
@ -456,6 +456,10 @@ int f2fs_submit_page_bio(struct f2fs_io_info *fio)
|
|||
bio_put(bio);
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
if (fio->io_wbc && !is_read_io(fio->op))
|
||||
wbc_account_io(fio->io_wbc, page, PAGE_SIZE);
|
||||
|
||||
bio_set_op_attrs(bio, fio->op, fio->op_flags);
|
||||
|
||||
__submit_bio(fio->sbi, bio, fio->type);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user