aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorGravatar Chao Yu <yuchao0@huawei.com> 2020-04-23 18:03:06 +0800
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2020-05-11 20:37:13 -0700
commit9c1223845a37ce09fd498b8c8ed061decff20eda (patch)
tree41bcce79f3ca047a5580014b69a3d06b42c614df /fs/f2fs/data.c
parentf2fs: fix potential use-after-free issue (diff)
downloadlinux-9c1223845a37ce09fd498b8c8ed061decff20eda.tar.gz
linux-9c1223845a37ce09fd498b8c8ed061decff20eda.tar.bz2
linux-9c1223845a37ce09fd498b8c8ed061decff20eda.zip
f2fs: add compressed/gc data read IO stat
in order to account data read IOs more accurately. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 4d871d27a85f..48a622b95b76 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -2234,6 +2234,7 @@ submit_and_realloc:
inc_page_count(sbi, F2FS_RD_DATA);
f2fs_update_iostat(sbi, FS_DATA_READ_IO, F2FS_BLKSIZE);
+ f2fs_update_iostat(sbi, FS_CDATA_READ_IO, F2FS_BLKSIZE);
ClearPageError(page);
*last_block_in_bio = blkaddr;
}