diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-05 20:32:34 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-10 01:20:57 +0200 |
commit | 5c2674347466d5c2d5169214e95f4ad6dc09e9b6 (patch) | |
tree | d717afd7e8668ee46f3d887c25a447130f920ae6 /fs/f2fs/gc.c | |
parent | f2fs: introduce background_gc=sync mount option (diff) | |
download | linux-5c2674347466d5c2d5169214e95f4ad6dc09e9b6.tar.xz linux-5c2674347466d5c2d5169214e95f4ad6dc09e9b6.zip |
f2fs: add a tracepoint for background gc
This patch introduces a tracepoint to monitor background gc behaviors.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r-- | fs/f2fs/gc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index e627c19f7301..e7cec86f0747 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -77,6 +77,9 @@ 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; |