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 e78cb9688421..b6984e234fdf 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -861,7 +861,7 @@ static int __compact_pgdat(pg_data_t *pgdat, struct compact_control *cc)
861 if (cc->order > 0) { 861 if (cc->order > 0) {
862 int ok = zone_watermark_ok(zone, cc->order, 862 int ok = zone_watermark_ok(zone, cc->order,
863 low_wmark_pages(zone), 0, 0); 863 low_wmark_pages(zone), 0, 0);
864 if (ok && cc->order > zone->compact_order_failed) 864 if (ok && cc->order >= zone->compact_order_failed)
865 zone->compact_order_failed = cc->order + 1; 865 zone->compact_order_failed = cc->order + 1;
866 /* Currently async compaction is never deferred. */ 866 /* Currently async compaction is never deferred. */
867 else if (!ok && cc->sync) 867 else if (!ok && cc->sync)