[PATCH] mm: compaction: push isolate search base of compact controlone pfn ahead

From: Hillf Danton
Date: Thu Nov 24 2011 - 07:38:19 EST


After isolated the current pfn will no longer be scanned and isolated if the
next round is necessary, so push the isolate_migratepages search base of the
given compact_control one step ahead.

Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
---

--- a/mm/compaction.c Thu Nov 24 20:23:28 2011
+++ b/mm/compaction.c Thu Nov 24 20:32:41 2011
@@ -365,8 +365,10 @@ static isolate_migrate_t isolate_migrate
nr_isolated++;

/* Avoid isolating too much */
- if (cc->nr_migratepages == COMPACT_CLUSTER_MAX)
+ if (cc->nr_migratepages == COMPACT_CLUSTER_MAX) {
+ ++low_pfn;
break;
+ }
}

acct_isolated(zone, cc);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/