Lines Matching refs:gc_th
34 struct f2fs_gc_kthread *gc_th = sbi->gc_thread; in gc_thread_func() local
43 wait_ms = gc_th->min_sleep_time; in gc_thread_func()
52 gc_th->gc_wake, in gc_thread_func()
59 if (gc_th->gc_wake) in gc_thread_func()
60 gc_th->gc_wake = 0; in gc_thread_func()
70 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
111 wait_ms = gc_th->urgent_sleep_time; in gc_thread_func()
125 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
132 decrease_sleep_time(gc_th, &wait_ms); in gc_thread_func()
134 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
153 wait_ms = gc_th->no_gc_sleep_time; in gc_thread_func()
157 wake_up_all(&gc_th->fggc_wq); in gc_thread_func()
173 struct f2fs_gc_kthread *gc_th; in f2fs_start_gc_thread() local
177 gc_th = f2fs_kmalloc(sbi, sizeof(struct f2fs_gc_kthread), GFP_KERNEL); in f2fs_start_gc_thread()
178 if (!gc_th) { in f2fs_start_gc_thread()
183 gc_th->urgent_sleep_time = DEF_GC_THREAD_URGENT_SLEEP_TIME; in f2fs_start_gc_thread()
184 gc_th->min_sleep_time = DEF_GC_THREAD_MIN_SLEEP_TIME; in f2fs_start_gc_thread()
185 gc_th->max_sleep_time = DEF_GC_THREAD_MAX_SLEEP_TIME; in f2fs_start_gc_thread()
186 gc_th->no_gc_sleep_time = DEF_GC_THREAD_NOGC_SLEEP_TIME; in f2fs_start_gc_thread()
188 gc_th->gc_wake = 0; in f2fs_start_gc_thread()
190 sbi->gc_thread = gc_th; in f2fs_start_gc_thread()
195 if (IS_ERR(gc_th->f2fs_gc_task)) { in f2fs_start_gc_thread()
196 err = PTR_ERR(gc_th->f2fs_gc_task); in f2fs_start_gc_thread()
197 kfree(gc_th); in f2fs_start_gc_thread()
206 struct f2fs_gc_kthread *gc_th = sbi->gc_thread; in f2fs_stop_gc_thread() local
208 if (!gc_th) in f2fs_stop_gc_thread()
210 kthread_stop(gc_th->f2fs_gc_task); in f2fs_stop_gc_thread()
211 wake_up_all(&gc_th->fggc_wq); in f2fs_stop_gc_thread()
212 kfree(gc_th); in f2fs_stop_gc_thread()