Lines Matching refs:gc_th
34 struct f2fs_gc_kthread *gc_th = sbi->gc_thread;
43 wait_ms = gc_th->min_sleep_time;
52 gc_th->gc_wake,
59 if (gc_th->gc_wake)
60 gc_th->gc_wake = false;
70 increase_sleep_time(gc_th, &wait_ms);
99 wait_ms = gc_th->urgent_sleep_time;
113 increase_sleep_time(gc_th, &wait_ms);
120 decrease_sleep_time(gc_th, &wait_ms);
122 increase_sleep_time(gc_th, &wait_ms);
141 wait_ms = gc_th->no_gc_sleep_time;
144 if (wait_ms == gc_th->no_gc_sleep_time)
145 wait_ms = gc_th->min_sleep_time;
149 wake_up_all(&gc_th->fggc_wq);
174 struct f2fs_gc_kthread *gc_th;
177 gc_th = f2fs_kmalloc(sbi, sizeof(struct f2fs_gc_kthread), GFP_KERNEL);
178 if (!gc_th)
181 gc_th->urgent_sleep_time = DEF_GC_THREAD_URGENT_SLEEP_TIME;
182 gc_th->min_sleep_time = DEF_GC_THREAD_MIN_SLEEP_TIME;
183 gc_th->max_sleep_time = DEF_GC_THREAD_MAX_SLEEP_TIME;
184 gc_th->no_gc_sleep_time = DEF_GC_THREAD_NOGC_SLEEP_TIME;
186 gc_th->gc_wake = false;
188 sbi->gc_thread = gc_th;
193 if (IS_ERR(gc_th->f2fs_gc_task)) {
194 int err = PTR_ERR(gc_th->f2fs_gc_task);
196 kfree(gc_th);
206 struct f2fs_gc_kthread *gc_th = sbi->gc_thread;
208 if (!gc_th)
210 kthread_stop(gc_th->f2fs_gc_task);
211 wake_up_all(&gc_th->fggc_wq);
212 kfree(gc_th);