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 &&
663 if (p->gc_mode == GC_AT)
770 is_atgc = (p.gc_mode == GC_AT || p.alloc_mode == AT_SSR);
809 last_victim = sm->last_victim[p.gc_mode];
826 if (sm->last_victim[p.gc_mode]) {
828 sm->last_victim[p.gc_mode];
829 sm->last_victim[p.gc_mode] = 0;
893 if (!sm->last_victim[p.gc_mode] && segno <= last_victim)
894 sm->last_victim[p.gc_mode] =
897 sm->last_victim[p.gc_mode] = segno + p.ofs_unit;
898 sm->last_victim[p.gc_mode] %=
1286 (fio.sbi->gc_mode != GC_URGENT_HIGH) ?
1768 sbi->gc_reclaimed_segs[sbi->gc_mode]++;
1988 int gc_mode, gc_type;
1998 for (gc_mode = 0; gc_mode < MAX_GC_POLICY; gc_mode++)
1999 if (SIT_I(sbi)->last_victim[gc_mode] >= start)
2000 SIT_I(sbi)->last_victim[gc_mode] = 0;