Lines Matching refs:gc_mode
97 if (sbi->gc_mode == GC_URGENT_HIGH || in gc_thread_func()
98 sbi->gc_mode == GC_URGENT_MID) { in gc_thread_func()
157 if (sbi->gc_mode != GC_NORMAL) { in gc_thread_func()
162 sbi->gc_mode = GC_NORMAL; in gc_thread_func()
218 int gc_mode; in select_gc_type() local
222 gc_mode = GC_AT; in select_gc_type()
224 gc_mode = GC_CB; in select_gc_type()
226 gc_mode = GC_GREEDY; in select_gc_type()
229 switch (sbi->gc_mode) { in select_gc_type()
233 gc_mode = GC_CB; in select_gc_type()
237 gc_mode = GC_GREEDY; in select_gc_type()
240 gc_mode = GC_AT; in select_gc_type()
244 return gc_mode; in select_gc_type()
253 p->gc_mode = GC_GREEDY; in select_policy()
258 p->gc_mode = GC_GREEDY; in select_policy()
263 p->gc_mode = select_gc_type(sbi, gc_type); in select_policy()
280 (sbi->gc_mode != GC_URGENT_HIGH) && in select_policy()
281 (p->gc_mode != GC_AT && p->alloc_mode != AT_SSR) && in select_policy()
292 p->offset = SIT_I(sbi)->last_victim[p->gc_mode]; in select_policy()
305 if (p->gc_mode == GC_GREEDY) in get_max_cost()
307 else if (p->gc_mode == GC_CB) in get_max_cost()
309 else if (p->gc_mode == GC_AT) in get_max_cost()
374 if (p->gc_mode == GC_GREEDY) in get_gc_cost()
376 else if (p->gc_mode == GC_CB) in get_gc_cost()
496 if (p->gc_mode == GC_AT && in add_victim_entry()
664 if (p->gc_mode == GC_AT) in lookup_victim_by_age()
771 is_atgc = (p.gc_mode == GC_AT || p.alloc_mode == AT_SSR); in f2fs_get_victim()
810 last_victim = sm->last_victim[p.gc_mode]; in f2fs_get_victim()
827 if (sm->last_victim[p.gc_mode]) { in f2fs_get_victim()
829 sm->last_victim[p.gc_mode]; in f2fs_get_victim()
830 sm->last_victim[p.gc_mode] = 0; in f2fs_get_victim()
894 if (!sm->last_victim[p.gc_mode] && segno <= last_victim) in f2fs_get_victim()
895 sm->last_victim[p.gc_mode] = in f2fs_get_victim()
898 sm->last_victim[p.gc_mode] = segno + p.ofs_unit; in f2fs_get_victim()
899 sm->last_victim[p.gc_mode] %= in f2fs_get_victim()
1288 (fio.sbi->gc_mode != GC_URGENT_HIGH) ? in move_data_block()
1779 sbi->gc_reclaimed_segs[sbi->gc_mode]++; in do_garbage_collect()
2029 int gc_mode, gc_type; in free_segment_range() local
2039 for (gc_mode = 0; gc_mode < MAX_GC_POLICY; gc_mode++) in free_segment_range()
2040 if (SIT_I(sbi)->last_victim[gc_mode] >= start) in free_segment_range()
2041 SIT_I(sbi)->last_victim[gc_mode] = 0; in free_segment_range()