summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2018-01-09 19:33:39 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-02-07 18:05:50 -0800
commitf53dcf6799abaf7776bc82679beb4382e8a85f9b (patch)
tree1908f7c0f016b2d9fbc1e582de4fdd3a66babcdb /include
parent1338f376d5a344fe786cc497e68c223508d2a937 (diff)
f2fs: implement cgroup writeback support
Cgroup writeback requires explicit support from the filesystem. f2fs's data and node writeback IOs go through __write_data_page, which sets fio for submiting IOs. So, we add io_wbc for fio, associate bios with blkcg by invoking wbc_init_bio() and account IOs issuing by wbc_account_io(). In addtion, f2fs_fill_super() is updated to set SB_I_CGROUPWB. Meta writeback IOs is left alone by this patch and will always be attributed to the root cgroup. The results show that f2fs can throttle writeback nicely for data writing and file creating. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions