.alloc_flags = alloc_flags,
.classzone_idx = classzone_idx,
.direct_compaction = true,
- .whole_zone = (prio == COMPACT_PRIO_SYNC_FULL),
- .ignore_skip_hint = (prio == COMPACT_PRIO_SYNC_FULL)
+ .whole_zone = (prio == MIN_COMPACT_PRIORITY),
+ .ignore_skip_hint = (prio == MIN_COMPACT_PRIORITY)
};
INIT_LIST_HEAD(&cc.freepages);
INIT_LIST_HEAD(&cc.migratepages);
ac->nodemask) {
enum compact_result status;
- if (prio > COMPACT_PRIO_SYNC_FULL
+ if (prio > MIN_COMPACT_PRIORITY
&& compaction_deferred(zone, order)) {
rc = max_t(enum compact_result, COMPACT_DEFERRED, rc);
continue;