]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-add-free_hot_cold_page_list-helper-v2
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 8 Dec 2011 04:38:51 +0000 (15:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:48:01 +0000 (16:48 +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 4821d7449d7c56cb88a767d8da49bd4e830d2022..4951835061489223e0d7fbbea4ab57c8eb37acb4 100644 (file)
@@ -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);
 }
 
 /*