Lines Matching defs:gc_mode
97 if (sbi->gc_mode == GC_URGENT_HIGH ||
98 sbi->gc_mode == GC_URGENT_MID) {
157 if (sbi->gc_mode != GC_NORMAL) {
162 sbi->gc_mode = GC_NORMAL;
218 int gc_mode;
222 gc_mode = GC_AT;
224 gc_mode = GC_CB;
226 gc_mode = GC_GREEDY;
229 switch (sbi->gc_mode) {
231 gc_mode = GC_CB;
235 gc_mode = GC_GREEDY;
238 gc_mode = GC_AT;
242 return gc_mode;
251 p->gc_mode = GC_GREEDY;
256 p->gc_mode = GC_GREEDY;
261 p->gc_mode = select_gc_type(sbi, gc_type);
278 (sbi->gc_mode != GC_URGENT_HIGH) &&
279 (p->gc_mode != GC_AT && p->alloc_mode != AT_SSR) &&
290 p->offset = SIT_I(sbi)->last_victim[p->gc_mode];
303 if (p->gc_mode == GC_GREEDY)
305 else if (p->gc_mode == GC_CB)
307 else if (p->gc_mode == GC_AT)
309 else /* No other gc_mode */
372 if (p->gc_mode == GC_GREEDY)
374 else if (p->gc_mode == GC_CB)
494 if (p->gc_mode == GC_AT &&
662 if (p->gc_mode == GC_AT)
769 is_atgc = (p.gc_mode == GC_AT || p.alloc_mode == AT_SSR);
808 last_victim = sm->last_victim[p.gc_mode];
825 if (sm->last_victim[p.gc_mode]) {
827 sm->last_victim[p.gc_mode];
828 sm->last_victim[p.gc_mode] = 0;
892 if (!sm->last_victim[p.gc_mode] && segno <= last_victim)
893 sm->last_victim[p.gc_mode] =
896 sm->last_victim[p.gc_mode] = segno + p.ofs_unit;
897 sm->last_victim[p.gc_mode] %=
1281 (fio.sbi->gc_mode != GC_URGENT_HIGH) ?
1762 sbi->gc_reclaimed_segs[sbi->gc_mode]++;
2018 int gc_mode, gc_type;
2028 for (gc_mode = 0; gc_mode < MAX_GC_POLICY; gc_mode++)
2029 if (SIT_I(sbi)->last_victim[gc_mode] >= start)
2030 SIT_I(sbi)->last_victim[gc_mode] = 0;