Message ID | 1425303450-1131-1-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/mm/compaction.c b/mm/compaction.c index 21bf292b642a..c7c6ae59f787 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -937,7 +937,7 @@ static int compact_finished(struct zone *zone, return COMPACT_PARTIAL; /* Job done if allocation would set block type */ - if (cc->order >= pageblock_order && area->nr_free) + if (order >= pageblock_order && area->nr_free) return COMPACT_PARTIAL; }