Home
last modified time | relevance | path

Searched refs:gc_th (Results 1 – 2 of 2) sorted by relevance

/fs/f2fs/
Dgc.h68 static inline void increase_sleep_time(struct f2fs_gc_kthread *gc_th, in increase_sleep_time() argument
71 unsigned int min_time = gc_th->min_sleep_time; in increase_sleep_time()
72 unsigned int max_time = gc_th->max_sleep_time; in increase_sleep_time()
74 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time()
83 static inline void decrease_sleep_time(struct f2fs_gc_kthread *gc_th, in decrease_sleep_time() argument
86 unsigned int min_time = gc_th->min_sleep_time; in decrease_sleep_time()
88 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time()
89 *wait = gc_th->max_sleep_time; in decrease_sleep_time()
Dgc.c26 struct f2fs_gc_kthread *gc_th = sbi->gc_thread; in gc_thread_func() local
30 wait_ms = gc_th->min_sleep_time; in gc_thread_func()
36 gc_th->gc_wake, in gc_thread_func()
40 if (gc_th->gc_wake) in gc_thread_func()
41 gc_th->gc_wake = 0; in gc_thread_func()
51 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
80 wait_ms = gc_th->urgent_sleep_time; in gc_thread_func()
91 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
98 decrease_sleep_time(gc_th, &wait_ms); in gc_thread_func()
100 increase_sleep_time(gc_th, &wait_ms); in gc_thread_func()
[all …]