From af6be1983ba3bf25069a8e6734fbcf855b727c9a Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Tue, 21 Jun 2011 11:24:35 +0200 Subject: mm-page-alloc-use-list-last-entry.patch Signed-off-by: Thomas Gleixner diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 6a83cd3..f61bc0f 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -658,7 +658,7 @@ static void free_pcppages_bulk(struct zone *zone, int count, do { int mt; /* migratetype of the to-be-freed page */ - page = list_entry(list->prev, struct page, lru); + page = list_last_entry(list, struct page, lru); /* must delete as __free_one_page list manipulates */ list_del(&page->lru); mt = get_freepage_migratetype(page); -- cgit v0.10.2