Message ID | 1427827583-25098-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/mm/compaction.c b/mm/compaction.c index 1b99ee9..b1067a4 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -887,7 +887,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; }