projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08b39fb
)
f2fs: relocate the tracepoint for background_gc
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 13 Oct 2015 17:00:53 +0000
(10:00 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 13 Oct 2015 17:02:01 +0000
(10:02 -0700)
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>
fs/f2fs/gc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/gc.c
b/fs/f2fs/gc.c
index af7c24caeef9d0c6532068b483e44652607b6d53..fedbf67a0842780b53862dcb3855db246e12d347 100644
(file)
--- 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);