From: Shuoran Liu Date: Tue, 29 Mar 2016 10:00:15 +0000 (+0800) Subject: f2fs: retrieve IO write stat from the right place X-Git-Tag: v4.6-rc3~33^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2dde6fca37e947628b82ae8f35e183ff112d07c;p=platform%2Fkernel%2Flinux-exynos.git f2fs: retrieve IO write stat from the right place In the following patch, f2fs: split journal cache from curseg cache journal cache is split from curseg cache. So IO write statistics should be retrived from journal cache but not curseg->sum_blk. Otherwise, it will get 0, and the stat is lost. Signed-off-by: Shuoran Liu Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 5afb4a6..c1b1e99 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1470,7 +1470,7 @@ try_onemore: seg_i = CURSEG_I(sbi, CURSEG_HOT_NODE); if (__exist_node_summaries(sbi)) sbi->kbytes_written = - le64_to_cpu(seg_i->sum_blk->journal.info.kbytes_written); + le64_to_cpu(seg_i->journal->info.kbytes_written); build_gc_manager(sbi);