]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to account IO correctly for cgroup writeback
authorChao Yu <yuchao0@huawei.com>
Mon, 22 Oct 2018 15:24:28 +0000 (23:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:12:28 +0000 (11:12 -0800)
commite2065558bfab9705c0d418b0b4706b8acf93a161
tree341346c0fe4782b42206e43afa6c1ef6940a000a
parent8eadae7951d5a5963de960cfdf0bc40b42cf4843
f2fs: fix to account IO correctly for cgroup writeback

[ Upstream commit 78efac537de33faab9a4302cc05a70bb4a8b3b63 ]

Now, we have supported cgroup writeback, it depends on correctly IO
account of specified filesystem.

But in commit d1b3e72d5490 ("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: d1b3e72d5490 ("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>
fs/f2fs/data.c