diff options
-rw-r--r-- | mm/compaction.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 32a033cb5c65..3a91a2ea3d34 100644 --- a/mm/compaction.c +++ b/mm/compaction.c | |||
@@ -851,6 +851,10 @@ static int compact_finished(struct zone *zone, | |||
851 | 851 | ||
852 | /* Compaction run completes if the migrate and free scanner meet */ | 852 | /* Compaction run completes if the migrate and free scanner meet */ |
853 | if (cc->free_pfn <= cc->migrate_pfn) { | 853 | if (cc->free_pfn <= cc->migrate_pfn) { |
854 | /* Let the next compaction start anew. */ | ||
855 | zone->compact_cached_migrate_pfn = zone->zone_start_pfn; | ||
856 | zone->compact_cached_free_pfn = zone_end_pfn(zone); | ||
857 | |||
854 | /* | 858 | /* |
855 | * Mark that the PG_migrate_skip information should be cleared | 859 | * Mark that the PG_migrate_skip information should be cleared |
856 | * by kswapd when it goes to sleep. kswapd does not set the | 860 | * by kswapd when it goes to sleep. kswapd does not set the |