From: Andrew Morton Date: Wed, 26 Sep 2012 01:33:49 +0000 (+1000) Subject: mm-compaction-abort-compaction-loop-if-lock-is-contended-or-run-too-long-fix X-Git-Tag: next-20120927~1^2~233 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6b4f063663a85023dc39c0483bfe97af487bded7;p=karo-tx-linux.git mm-compaction-abort-compaction-loop-if-lock-is-contended-or-run-too-long-fix make compact_zone_order() require non-NULL arg `contended' Cc: Andrea Arcangeli Cc: Mel Gorman Cc: Minchan Kim Cc: Shaohua Li Cc: Shaohua Li Signed-off-by: Andrew Morton --- diff --git a/mm/compaction.c b/mm/compaction.c index 197d4ee76672..7c3bd79b3310 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -909,8 +909,7 @@ static unsigned long compact_zone_order(struct zone *zone, INIT_LIST_HEAD(&cc.migratepages); ret = compact_zone(zone, &cc); - if (contended) - *contended = cc.contended; + *contended = cc.contended; return ret; }