Lines Matching refs:gc_mode
93 if (sbi->gc_mode == GC_URGENT_HIGH) { in gc_thread_func()
194 int gc_mode; in select_gc_type() local
198 gc_mode = GC_AT; in select_gc_type()
200 gc_mode = GC_CB; in select_gc_type()
202 gc_mode = GC_GREEDY; in select_gc_type()
205 switch (sbi->gc_mode) { in select_gc_type()
207 gc_mode = GC_CB; in select_gc_type()
211 gc_mode = GC_GREEDY; in select_gc_type()
214 gc_mode = GC_AT; in select_gc_type()
218 return gc_mode; in select_gc_type()
227 p->gc_mode = GC_GREEDY; in select_policy()
232 p->gc_mode = GC_GREEDY; in select_policy()
237 p->gc_mode = select_gc_type(sbi, gc_type); in select_policy()
254 (sbi->gc_mode != GC_URGENT_HIGH) && in select_policy()
255 (p->gc_mode != GC_AT && p->alloc_mode != AT_SSR) && in select_policy()
264 p->offset = SIT_I(sbi)->last_victim[p->gc_mode]; in select_policy()
277 if (p->gc_mode == GC_GREEDY) in get_max_cost()
279 else if (p->gc_mode == GC_CB) in get_max_cost()
281 else if (p->gc_mode == GC_AT) in get_max_cost()
346 if (p->gc_mode == GC_GREEDY) in get_gc_cost()
348 else if (p->gc_mode == GC_CB) in get_gc_cost()
412 if (p->gc_mode == GC_AT && in add_victim_entry()
605 if (p->gc_mode == GC_AT) in lookup_victim_by_age()
664 is_atgc = (p.gc_mode == GC_AT || p.alloc_mode == AT_SSR); in get_victim_by_default()
703 last_victim = sm->last_victim[p.gc_mode]; in get_victim_by_default()
720 if (sm->last_victim[p.gc_mode]) { in get_victim_by_default()
722 sm->last_victim[p.gc_mode]; in get_victim_by_default()
723 sm->last_victim[p.gc_mode] = 0; in get_victim_by_default()
784 if (!sm->last_victim[p.gc_mode] && segno <= last_victim) in get_victim_by_default()
785 sm->last_victim[p.gc_mode] = in get_victim_by_default()
788 sm->last_victim[p.gc_mode] = segno + p.ofs_unit; in get_victim_by_default()
789 sm->last_victim[p.gc_mode] %= in get_victim_by_default()
1172 (fio.sbi->gc_mode != GC_URGENT_HIGH) ? in move_data_block()
1667 sbi->gc_reclaimed_segs[sbi->gc_mode]++; in do_garbage_collect()
1873 int gc_mode, gc_type; in free_segment_range() local
1883 for (gc_mode = 0; gc_mode < MAX_GC_POLICY; gc_mode++) in free_segment_range()
1884 if (SIT_I(sbi)->last_victim[gc_mode] >= start) in free_segment_range()
1885 SIT_I(sbi)->last_victim[gc_mode] = 0; in free_segment_range()