aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 36a168e383b5..426056aff12a 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -614,6 +614,10 @@ static void free_pcppages_bulk(struct zone *zone, int count,
614 list = &pcp->lists[migratetype]; 614 list = &pcp->lists[migratetype];
615 } while (list_empty(list)); 615 } while (list_empty(list));
616 616
617 /* This is the only non-empty list. Free them all. */
618 if (batch_free == MIGRATE_PCPTYPES)
619 batch_free = to_free;
620
617 do { 621 do {
618 page = list_entry(list->prev, struct page, lru); 622 page = list_entry(list->prev, struct page, lru);
619 /* must delete as __free_one_page list manipulates */ 623 /* must delete as __free_one_page list manipulates */