From: Hillf Danton Date: Tue, 10 Jan 2012 23:07:59 +0000 (-0800) Subject: mm: compaction: push isolate search base of compact control one pfn ahead X-Git-Tag: v3.3-rc1~113^2~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31b8384a555d94c78e2ea2284a323cb985441f60;p=platform%2Fkernel%2Flinux-exynos.git mm: compaction: push isolate search base of compact control one pfn ahead 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 Reviewed-by: Andrea Arcangeli Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/compaction.c b/mm/compaction.c index 1253d7a..e6670c34 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -365,8 +365,10 @@ static isolate_migrate_t isolate_migratepages(struct zone *zone, 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);