mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
f2fs: add a tracepoint for background gc
This patch introduces a tracepoint to monitor background gc behaviors. Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
parent
6aefd93b01
commit
5c26743474
2 changed files with 31 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue