summaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorShuoran Liu <liushuoran@huawei.com>2016-03-29 18:00:15 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-03-30 13:21:16 -0700
commitb2dde6fca37e947628b82ae8f35e183ff112d07c (patch)
tree2de4672a8f5e129fc01a944c18fd5185c97b0b31 /fs/f2fs/super.c
parentc90e09f7fb498f81cd4e8bb6460d3a26ccebeca3 (diff)
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 <liushuoran@huawei.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 5afb4a6e01a2..c1b1e993adb1 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);