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, 10 Aug 2017 04:43:58 +0000 (21:43 -0700)
commitb0af6d491a6b5f5622fa91ac75f34f3640f862c4
treed70ceb1814e1f9797566f72242141a698a727907
parent35ee82ca133a58011e648a407d4ab13275c975d4
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