Lines Matching defs:gc_th
33 struct f2fs_gc_kthread *gc_th = sbi->gc_thread;
38 wait_ms = gc_th->min_sleep_time;
47 gc_th->gc_wake,
54 if (gc_th->gc_wake)
55 gc_th->gc_wake = 0;
65 increase_sleep_time(gc_th, &wait_ms);
94 wait_ms = gc_th->urgent_sleep_time;
108 increase_sleep_time(gc_th, &wait_ms);
115 decrease_sleep_time(gc_th, &wait_ms);
117 increase_sleep_time(gc_th, &wait_ms);
130 wait_ms = gc_th->no_gc_sleep_time;
133 wake_up_all(&gc_th->fggc_wq);
149 struct f2fs_gc_kthread *gc_th;
153 gc_th = f2fs_kmalloc(sbi, sizeof(struct f2fs_gc_kthread), GFP_KERNEL);
154 if (!gc_th) {
159 gc_th->urgent_sleep_time = DEF_GC_THREAD_URGENT_SLEEP_TIME;
160 gc_th->min_sleep_time = DEF_GC_THREAD_MIN_SLEEP_TIME;
161 gc_th->max_sleep_time = DEF_GC_THREAD_MAX_SLEEP_TIME;
162 gc_th->no_gc_sleep_time = DEF_GC_THREAD_NOGC_SLEEP_TIME;
164 gc_th->gc_wake= 0;
166 sbi->gc_thread = gc_th;
171 if (IS_ERR(gc_th->f2fs_gc_task)) {
172 err = PTR_ERR(gc_th->f2fs_gc_task);
173 kfree(gc_th);
182 struct f2fs_gc_kthread *gc_th = sbi->gc_thread;
183 if (!gc_th)
185 kthread_stop(gc_th->f2fs_gc_task);
186 wake_up_all(&gc_th->fggc_wq);
187 kfree(gc_th);