Searched refs:gc_th (Results 1 – 2 of 2) sorted by relevance
67 static inline void increase_sleep_time(struct f2fs_gc_kthread *gc_th, in increase_sleep_time() argument70 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time()73 *wait += gc_th->min_sleep_time; in increase_sleep_time()74 if (*wait > gc_th->max_sleep_time) in increase_sleep_time()75 *wait = gc_th->max_sleep_time; in increase_sleep_time()78 static inline void decrease_sleep_time(struct f2fs_gc_kthread *gc_th, in decrease_sleep_time() argument81 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time()82 *wait = gc_th->max_sleep_time; in decrease_sleep_time()84 *wait -= gc_th->min_sleep_time; in decrease_sleep_time()85 if (*wait <= gc_th->min_sleep_time) in decrease_sleep_time()[all …]
30 struct f2fs_gc_kthread *gc_th = sbi->gc_thread; in gc_thread_func() local34 wait_ms = gc_th->min_sleep_time; in gc_thread_func()47 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()68 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()74 decrease_sleep_time(gc_th, &wait_ms); in gc_thread_func()76 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()82 wait_ms = gc_th->no_gc_sleep_time; in gc_thread_func()93 struct f2fs_gc_kthread *gc_th; in start_gc_thread() local97 gc_th = kmalloc(sizeof(struct f2fs_gc_kthread), GFP_KERNEL); in start_gc_thread()98 if (!gc_th) { in start_gc_thread()[all …]