From aacb3b4e8c75f423c3e47a9a15bdd60abb3b4241 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 26 Sep 2012 11:33:49 +1000 Subject: [PATCH] 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 --- mm/compaction.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.5