f2fs: add block count by in-place-update in stat info
This patch adds block count by in-place-update in stat.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index b688991..f995a85 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -1230,6 +1230,7 @@
void rewrite_data_page(struct page *page, struct f2fs_io_info *fio)
{
+ stat_inc_inplace_blocks(F2FS_P_SB(page));
f2fs_submit_page_mbio(F2FS_P_SB(page), page, fio);
}