]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-compaction-abort-compaction-loop-if-lock-is-contended-or-run-too-long-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 26 Sep 2012 01:33:49 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:03 +0000 (15:45 +1000)
make compact_zone_order() require non-NULL arg `contended'

Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Shaohua Li <shli@fusionio.com>
Cc: Shaohua Li <shli@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c

index 197d4ee76672bd26b916161b58a5ab58a5b418d1..7c3bd79b3310f95d479fd996699118b173fb59cf 100644 (file)
@@ -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;
 }