f2fs: add sysfs nodes to get runtime compression stat
authorDaeho Jeong <daehojeong@google.com>
Mon, 15 Mar 2021 08:12:33 +0000 (17:12 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 26 Mar 2021 01:20:50 +0000 (18:20 -0700)
commit5ac443e26a096429065349c640538101012ce40d
tree5256928e9ecf186a14e2981ad003af785767ee21
parent0bb2045ce5ce67b0428301c117ec960b3f705a44
f2fs: add sysfs nodes to get runtime compression stat

I've added new sysfs nodes to show runtime compression stat since mount.
compr_written_block - show the block count written after compression
compr_saved_block - show the saved block count with compression
compr_new_inode - show the count of inode newly enabled for compression

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/compress.c
fs/f2fs/f2fs.h
fs/f2fs/sysfs.c