aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/compaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 75f4c1206d00..eaf0a925ff26 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -1362,7 +1362,7 @@ unsigned long try_to_compact_pages(struct zonelist *zonelist,
1362 goto break_loop; 1362 goto break_loop;
1363 } 1363 }
1364 1364
1365 if (mode != MIGRATE_ASYNC) { 1365 if (mode != MIGRATE_ASYNC && status == COMPACT_COMPLETE) {
1366 /* 1366 /*
1367 * We think that allocation won't succeed in this zone 1367 * We think that allocation won't succeed in this zone
1368 * so we defer compaction there. If it ends up 1368 * so we defer compaction there. If it ends up