diff options
-rw-r--r-- | mm/compaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index a08bf219f88c..74a8c825ff28 100644 --- a/mm/compaction.c +++ b/mm/compaction.c | |||
@@ -35,7 +35,7 @@ struct compact_control { | |||
35 | unsigned long migrate_pfn; /* isolate_migratepages search base */ | 35 | unsigned long migrate_pfn; /* isolate_migratepages search base */ |
36 | bool sync; /* Synchronous migration */ | 36 | bool sync; /* Synchronous migration */ |
37 | 37 | ||
38 | unsigned int order; /* order a direct compactor needs */ | 38 | int order; /* order a direct compactor needs */ |
39 | int migratetype; /* MOVABLE, RECLAIMABLE etc */ | 39 | int migratetype; /* MOVABLE, RECLAIMABLE etc */ |
40 | struct zone *zone; | 40 | struct zone *zone; |
41 | }; | 41 | }; |
@@ -692,7 +692,7 @@ static int __compact_pgdat(pg_data_t *pgdat, struct compact_control *cc) | |||
692 | INIT_LIST_HEAD(&cc->freepages); | 692 | INIT_LIST_HEAD(&cc->freepages); |
693 | INIT_LIST_HEAD(&cc->migratepages); | 693 | INIT_LIST_HEAD(&cc->migratepages); |
694 | 694 | ||
695 | if (cc->order < 0 || !compaction_deferred(zone, cc->order)) | 695 | if (cc->order == -1 || !compaction_deferred(zone, cc->order)) |
696 | compact_zone(zone, cc); | 696 | compact_zone(zone, cc); |
697 | 697 | ||
698 | if (cc->order > 0) { | 698 | if (cc->order > 0) { |