]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-add-free_hot_cold_page_list-helper-v2
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 16 Nov 2011 23:41:21 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 23 Nov 2011 03:04:42 +0000 (14:04 +1100)
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index e74a04b0a81a6733dd406c4303e3f4fc2d369a7f..dbeec78d0c96663b7facc12d942583dc2015a04a 100644 (file)
@@ -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);
 }
 
 /*