]> git.baikalelectronics.ru Git - 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)
commit0378058df85db835141afa268fe9296200b18b8d
tree4c5e793f91f92c05742ac16a07f05ad564611b56
parent0653b0bc11611768c05a9f1f5f6abbe8801b36f0
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