aboutsummaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/compaction.c')
-rw-r--r--mm/compaction.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index e0ab02d70f13..b48c5259ea33 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -523,7 +523,10 @@ isolate_migratepages_range(struct zone *zone, struct compact_control *cc,
523 if (!isolation_suitable(cc, page)) 523 if (!isolation_suitable(cc, page))
524 goto next_pageblock; 524 goto next_pageblock;
525 525
526 /* Skip if free */ 526 /*
527 * Skip if free. page_order cannot be used without zone->lock
528 * as nothing prevents parallel allocations or buddy merging.
529 */
527 if (PageBuddy(page)) 530 if (PageBuddy(page))
528 continue; 531 continue;
529 532