mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reviewed-by: Andrea Arcangeli <[email protected]> Cc: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e3a41a5ba9
commit
31b8384a55
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue