OSDN Git Service

f2fs: add app/fs io stat
authorChao Yu <yuchao0@huawei.com>
Wed, 2 Aug 2017 15:21:48 +0000 (23:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 21 Sep 2017 21:11:49 +0000 (14:11 -0700)
commitd39f75a593462334d1baf72b67e57bd93e9a1b0d
tree22f088f6172e71ae130e7a52d14a41d89a239936
parent98407fc7a07f5b7d21fc5caaf00844f3889e77a0
f2fs: add app/fs io stat

This patch enables inner app/fs io stats and introduces below virtual fs
nodes for exposing stats info:
/sys/fs/f2fs/<dev>/iostat_enable
/proc/fs/f2fs/<dev>/iostat_info

Signed-off-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: fix wrong stat assignment]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/inline.c
fs/f2fs/node.c
fs/f2fs/segment.c
fs/f2fs/super.c
fs/f2fs/sysfs.c