From d493b318721825d9f7ccf6f43714d3f9a72809b6 Mon Sep 17 00:00:00 2001 From: Konstantin Khlebnikov Date: Thu, 8 Dec 2011 15:38:51 +1100 Subject: [PATCH] mm-add-free_hot_cold_page_list-helper-v2 Signed-off-by: Konstantin Khlebnikov Cc: Mel Gorman Cc: KOSAKI Motohiro Cc: Minchan Kim Cc: Hugh Dickins Signed-off-by: Andrew Morton --- mm/page_alloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 4821d7449d7c..495183506148 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1188,6 +1188,9 @@ out: local_irq_restore(flags); } +/* + * Free a list of 0-order pages + */ void free_hot_cold_page_list(struct list_head *list, int cold) { struct page *page, *next; @@ -1196,8 +1199,6 @@ void free_hot_cold_page_list(struct list_head *list, int cold) trace_mm_pagevec_free(page, cold); free_hot_cold_page(page, cold); } - - INIT_LIST_HEAD(list); } /* -- 2.39.5