diff options
author | Daeho Jeong <daehojeong@google.com> | 2022-07-19 01:02:48 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-07-31 05:17:07 +0200 |
commit | f8e2f32bcde5945e8f8dbb8714178c24d221366b (patch) | |
tree | e9360e5772e2b6bc6d04a4c3c72f85a8f716a62b /fs/f2fs/file.c | |
parent | f2fs: don't bother wait_ms by foreground gc (diff) | |
download | linux-f8e2f32bcde5945e8f8dbb8714178c24d221366b.tar.xz linux-f8e2f32bcde5945e8f8dbb8714178c24d221366b.zip |
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>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 6b1b030830ca..9604b347fb29 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2075,6 +2075,7 @@ static int f2fs_ioc_start_atomic_write(struct file *filp) f2fs_update_time(sbi, REQ_TIME); fi->atomic_write_task = current; stat_update_max_atomic_write(inode); + fi->atomic_write_cnt = 0; out: inode_unlock(inode); mnt_drop_write_file(filp); |