summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-10-13 10:00:53 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-13 10:02:01 -0700
commit84e4214f0868ae77771837d0ed4cc6eff10738ba (patch)
treea40bc24bd6f45937922b1e45aeac963705ffeb7b /fs/f2fs
parent08b39fbd59781729da9fb6367decaf4804a22721 (diff)
downloadlinux-84e4214f0868ae77771837d0ed4cc6eff10738ba.tar.bz2
f2fs: relocate the tracepoint for background_gc
Once f2fs_gc is done, wait_ms is changed once more. So, its tracepoint would be located after it. Reported-by: He YunLei <heyunlei@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/gc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index af7c24caeef9..fedbf67a0842 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -77,13 +77,13 @@ static int gc_thread_func(void *data)
stat_inc_bggc_count(sbi);
- trace_f2fs_background_gc(sbi->sb, wait_ms,
- prefree_segments(sbi), free_segments(sbi));
-
/* if return value is not zero, no victim was selected */
if (f2fs_gc(sbi, test_opt(sbi, FORCE_FG_GC)))
wait_ms = gc_th->no_gc_sleep_time;
+ trace_f2fs_background_gc(sbi->sb, wait_ms,
+ prefree_segments(sbi), free_segments(sbi));
+
/* balancing f2fs's metadata periodically */
f2fs_balance_fs_bg(sbi);