X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=mm%2Fcompaction.c;h=eeaaa929d1debf611c1cd87adb3e949c701580bb;hb=bd0229c230e7ce936612e36e1cb8915faef90018;hp=fb797a32362fecc011c2f2fcf57cb47b875c854f;hpb=c69294e957dd173809ec7815231e6aff6d5c2d83;p=firefly-linux-kernel-4.4.55.git diff --git a/mm/compaction.c b/mm/compaction.c index fb797a32362f..eeaaa929d1de 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -881,7 +881,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; }