]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
f2fs: add to account direct IO
authorChao Yu <yuchao0@huawei.com>
Sun, 11 Nov 2018 16:46:46 +0000 (00:46 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 26 Nov 2018 23:53:56 +0000 (15:53 -0800)
commit02b16d0a34a188a21d08be52b37505e531aa558a
tree4c5e793f91f92c05742ac16a07f05ad564611b56
parentb61ac5b720146c619c7cdf17eff2551b934399e5
f2fs: add to account direct IO

This patch adds f2fs_dio_submit_bio() to hook submit_io/end_io functions
in direct IO path, in order to account DIO.

Later, we will add this count into is_idle() to let background GC/Discard
thread be aware of DIO.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/debug.c
fs/f2fs/f2fs.h