Lines Matching defs:gc_mode
93 if (sbi->gc_mode == GC_URGENT_HIGH) {
193 int gc_mode;
197 gc_mode = GC_AT;
199 gc_mode = GC_CB;
201 gc_mode = GC_GREEDY;
204 switch (sbi->gc_mode) {
206 gc_mode = GC_CB;
210 gc_mode = GC_GREEDY;
213 gc_mode = GC_AT;
217 return gc_mode;
226 p->gc_mode = GC_GREEDY;
231 p->gc_mode = GC_GREEDY;
236 p->gc_mode = select_gc_type(sbi, gc_type);
253 (sbi->gc_mode != GC_URGENT_HIGH) &&
254 (p->gc_mode != GC_AT && p->alloc_mode != AT_SSR) &&
263 p->offset = SIT_I(sbi)->last_victim[p->gc_mode];
276 if (p->gc_mode == GC_GREEDY)
278 else if (p->gc_mode == GC_CB)
280 else if (p->gc_mode == GC_AT)
282 else /* No other gc_mode */
345 if (p->gc_mode == GC_GREEDY)
347 else if (p->gc_mode == GC_CB)
411 if (p->gc_mode == GC_AT &&
604 if (p->gc_mode == GC_AT)
663 is_atgc = (p.gc_mode == GC_AT || p.alloc_mode == AT_SSR);
702 last_victim = sm->last_victim[p.gc_mode];
719 if (sm->last_victim[p.gc_mode]) {
721 sm->last_victim[p.gc_mode];
722 sm->last_victim[p.gc_mode] = 0;
783 if (!sm->last_victim[p.gc_mode] && segno <= last_victim)
784 sm->last_victim[p.gc_mode] =
787 sm->last_victim[p.gc_mode] = segno + p.ofs_unit;
788 sm->last_victim[p.gc_mode] %=
1878 int gc_mode, gc_type;
1888 for (gc_mode = 0; gc_mode < MAX_GC_POLICY; gc_mode++)
1889 if (SIT_I(sbi)->last_victim[gc_mode] >= start)
1890 SIT_I(sbi)->last_victim[gc_mode] = 0;