f2fs: introduce sysfs atomic write statistics
authorDaeho Jeong <daehojeong@google.com>
Mon, 18 Jul 2022 23:02:48 +0000 (16:02 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 31 Jul 2022 03:17:07 +0000 (20:17 -0700)
commitf8e2f32bcde5945e8f8dbb8714178c24d221366b
treee9360e5772e2b6bc6d04a4c3c72f85a8f716a62b
parent1adaa71ea9bff3a0ca0b37eabbb7f89225b595cb
f2fs: introduce sysfs atomic write statistics

introduce the below 4 new sysfs node for atomic write statistics.
- current_atomic_write: the total current atomic write block count,
                        which is not committed yet.
- peak_atomic_write: the peak value of total current atomic write block
                     count after boot.
- committed_atomic_block: the accumulated total committed atomic write
                          block count after boot.
- revoked_atomic_block: the accumulated total revoked atomic write block
                        count after boot.

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