Lines Matching refs:gc_th

32 	struct f2fs_gc_kthread *gc_th = sbi->gc_thread;  in gc_thread_func()  local
37 wait_ms = gc_th->min_sleep_time; in gc_thread_func()
46 gc_th->gc_wake, in gc_thread_func()
53 if (gc_th->gc_wake) in gc_thread_func()
54 gc_th->gc_wake = 0; in gc_thread_func()
64 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
94 wait_ms = gc_th->urgent_sleep_time; in gc_thread_func()
108 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
115 decrease_sleep_time(gc_th, &wait_ms); in gc_thread_func()
117 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
130 wait_ms = gc_th->no_gc_sleep_time; in gc_thread_func()
133 wake_up_all(&gc_th->fggc_wq); in gc_thread_func()
149 struct f2fs_gc_kthread *gc_th; in f2fs_start_gc_thread() local
153 gc_th = f2fs_kmalloc(sbi, sizeof(struct f2fs_gc_kthread), GFP_KERNEL); in f2fs_start_gc_thread()
154 if (!gc_th) { in f2fs_start_gc_thread()
159 gc_th->urgent_sleep_time = DEF_GC_THREAD_URGENT_SLEEP_TIME; in f2fs_start_gc_thread()
160 gc_th->min_sleep_time = DEF_GC_THREAD_MIN_SLEEP_TIME; in f2fs_start_gc_thread()
161 gc_th->max_sleep_time = DEF_GC_THREAD_MAX_SLEEP_TIME; in f2fs_start_gc_thread()
162 gc_th->no_gc_sleep_time = DEF_GC_THREAD_NOGC_SLEEP_TIME; in f2fs_start_gc_thread()
164 gc_th->gc_wake = 0; in f2fs_start_gc_thread()
166 sbi->gc_thread = gc_th; in f2fs_start_gc_thread()
171 if (IS_ERR(gc_th->f2fs_gc_task)) { in f2fs_start_gc_thread()
172 err = PTR_ERR(gc_th->f2fs_gc_task); in f2fs_start_gc_thread()
173 kfree(gc_th); in f2fs_start_gc_thread()
182 struct f2fs_gc_kthread *gc_th = sbi->gc_thread; in f2fs_stop_gc_thread() local
184 if (!gc_th) in f2fs_stop_gc_thread()
186 kthread_stop(gc_th->f2fs_gc_task); in f2fs_stop_gc_thread()
187 wake_up_all(&gc_th->fggc_wq); in f2fs_stop_gc_thread()
188 kfree(gc_th); in f2fs_stop_gc_thread()