f2fs: support accounting iostat count and avg_bytes
authorYangtao Li <frank.li@vivo.com>
Wed, 21 Dec 2022 19:19:32 +0000 (03:19 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 Jan 2023 19:15:19 +0000 (11:15 -0800)
commit7a2b15cfa8dbbd54beb4e2ce7b2f42eb0ad00425
tree901e54d888930668c9659e4dee00397fe1ce2737
parent45c98f5a58f36c35ecf5a149cbf69cf5fd022120
f2fs: support accounting iostat count and avg_bytes

Previously, we supported to account iostat io_bytes,
in this patch, it adds to account iostat count and avg_bytes:

time:           1671648667
                        io_bytes         count            avg_bytes
[WRITE]
app buffered data:      31               2                15

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/iostat.c
fs/f2fs/segment.c
include/trace/events/f2fs.h