]> 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)
commit4fcc91d16d9dfd7a436481cb03d9195e2e9a4d45
tree4c5e793f91f92c05742ac16a07f05ad564611b56
parent0021ca6ec963fc905cf5a8f7f54f8683b7e0df2e
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