Commit 31b8384a authored by Hillf Danton's avatar Hillf Danton Committed by Linus Torvalds

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: default avatarHillf Danton <dhillf@gmail.com>
Reviewed-by: default avatarAndrea Arcangeli <aarcange@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e3a41a5b
...@@ -365,9 +365,11 @@ static isolate_migrate_t isolate_migratepages(struct zone *zone, ...@@ -365,9 +365,11 @@ static isolate_migrate_t isolate_migratepages(struct zone *zone,
nr_isolated++; nr_isolated++;
/* Avoid isolating too much */ /* Avoid isolating too much */
if (cc->nr_migratepages == COMPACT_CLUSTER_MAX) if (cc->nr_migratepages == COMPACT_CLUSTER_MAX) {
++low_pfn;
break; break;
} }
}
acct_isolated(zone, cc); acct_isolated(zone, cc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment