Lines Matching refs:gc_th

29 	struct f2fs_gc_kthread *gc_th = sbi->gc_thread;  in gc_thread_func()  local
33 wait_ms = gc_th->min_sleep_time; in gc_thread_func()
39 gc_th->gc_wake, in gc_thread_func()
43 if (gc_th->gc_wake) in gc_thread_func()
44 gc_th->gc_wake = 0; in gc_thread_func()
52 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
78 wait_ms = gc_th->urgent_sleep_time; in gc_thread_func()
87 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
93 decrease_sleep_time(gc_th, &wait_ms); in gc_thread_func()
95 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
101 wait_ms = gc_th->no_gc_sleep_time; in gc_thread_func()
117 struct f2fs_gc_kthread *gc_th; in f2fs_start_gc_thread() local
121 gc_th = f2fs_kmalloc(sbi, sizeof(struct f2fs_gc_kthread), GFP_KERNEL); in f2fs_start_gc_thread()
122 if (!gc_th) { in f2fs_start_gc_thread()
127 gc_th->urgent_sleep_time = DEF_GC_THREAD_URGENT_SLEEP_TIME; in f2fs_start_gc_thread()
128 gc_th->min_sleep_time = DEF_GC_THREAD_MIN_SLEEP_TIME; in f2fs_start_gc_thread()
129 gc_th->max_sleep_time = DEF_GC_THREAD_MAX_SLEEP_TIME; in f2fs_start_gc_thread()
130 gc_th->no_gc_sleep_time = DEF_GC_THREAD_NOGC_SLEEP_TIME; in f2fs_start_gc_thread()
132 gc_th->gc_wake= 0; in f2fs_start_gc_thread()
134 sbi->gc_thread = gc_th; in f2fs_start_gc_thread()
138 if (IS_ERR(gc_th->f2fs_gc_task)) { in f2fs_start_gc_thread()
139 err = PTR_ERR(gc_th->f2fs_gc_task); in f2fs_start_gc_thread()
140 kfree(gc_th); in f2fs_start_gc_thread()
149 struct f2fs_gc_kthread *gc_th = sbi->gc_thread; in f2fs_stop_gc_thread() local
150 if (!gc_th) in f2fs_stop_gc_thread()
152 kthread_stop(gc_th->f2fs_gc_task); in f2fs_stop_gc_thread()
153 kfree(gc_th); in f2fs_stop_gc_thread()