>@@ -1564,14 +1564,11 @@ static enum compact_result compact_zone(struct zone *zone, struct compact_controThis took me a while to grasp but then I realized this is correct
> trace_mm_compaction_end(start_pfn, cc->migrate_pfn,
> cc->free_pfn, end_pfn, sync, ret);
>
>- if (ret == COMPACT_CONTENDED)
>- ret = COMPACT_PARTIAL;
>-
> return ret;
> }
because we shouldn't pretend progress when there was none in fact,
especially when __alloc_pages_direct_compact basically replaced this
"fake" COMPACT_PARTIAL by COMPACT_CONTENDED anyway.