All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] f2fs: retrieve IO write stat from the right place
@ 2016-03-29 10:00 Shuoran Liu
  2016-03-29 13:29 ` Chao Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Shuoran Liu @ 2016-03-29 10:00 UTC (permalink / raw)
  To: jaegeuk, chao2.yu; +Cc: linux-f2fs-devel

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>
---
 fs/f2fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 15bb81f..e2787c8 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1442,7 +1442,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);
 
-- 
1.9.1


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-29 13:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29 10:00 [PATCH] f2fs: retrieve IO write stat from the right place Shuoran Liu
2016-03-29 13:29 ` Chao Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.