f2fs: introduce lifetime write IO statistics
authorShuoran Liu <liushuoran@huawei.com>
Wed, 27 Jan 2016 01:57:30 +0000 (09:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
commit8f1dbbbbdfe9bada7e2f8041e07c6373f787c043
tree25fb006ca5bc2f960722210241c0f9e14af9c0d1
parent6fe2bc95616650104020e821ea84c086cce1e290
f2fs: introduce lifetime write IO statistics

This patch introduces lifetime IO write statistics exposed to the sysfs interface.
The write IO amount is obtained from block layer, accumulated in the file system and
stored in the hot node summary of checkpoint.

Signed-off-by: Shuoran Liu <liushuoran@huawei.com>
Signed-off-by: Pengyang Hou <houpengyang@huawei.com>
[Jaegeuk Kim: add sysfs documentation]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/super.c
include/linux/f2fs_fs.h