diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index b230e838883d..84da0e3bc886 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2235,10 +2235,7 @@ __alloc_pages_direct_compact(gfp_t gfp_mask, unsigned int order, | |||
2235 | preferred_zone, migratetype); | 2235 | preferred_zone, migratetype); |
2236 | if (page) { | 2236 | if (page) { |
2237 | preferred_zone->compact_blockskip_flush = false; | 2237 | preferred_zone->compact_blockskip_flush = false; |
2238 | preferred_zone->compact_considered = 0; | 2238 | compaction_defer_reset(preferred_zone, order, true); |
2239 | preferred_zone->compact_defer_shift = 0; | ||
2240 | if (order >= preferred_zone->compact_order_failed) | ||
2241 | preferred_zone->compact_order_failed = order + 1; | ||
2242 | count_vm_event(COMPACTSUCCESS); | 2239 | count_vm_event(COMPACTSUCCESS); |
2243 | return page; | 2240 | return page; |
2244 | } | 2241 | } |