From: Konstantin Khlebnikov Date: Wed, 16 Nov 2011 23:41:21 +0000 (+1100) Subject: mm-add-free_hot_cold_page_list-helper-v2 X-Git-Tag: next-20111123~4^2~78 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9a1878c4cee63f0af60a0541a3113b26a989bae2;p=karo-tx-linux.git 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 --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e74a04b0a81a..dbeec78d0c96 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1210,6 +1210,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; @@ -1218,8 +1221,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); } /*