diff options
author | Peter Zijlstra <peterz@infradead.org> | 2011-06-21 09:24:35 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2013-04-04 22:09:10 (GMT) |
commit | af6be1983ba3bf25069a8e6734fbcf855b727c9a (patch) | |
tree | 3e37769205fc362414327a3e21514d26d428bc44 /mm/page_alloc.c | |
parent | 14aba70a81f6a5f4058a68ff130b57e1e4640e65 (diff) | |
download | linux-fsl-qoriq-af6be1983ba3bf25069a8e6734fbcf855b727c9a.tar.xz |
mm-page-alloc-use-list-last-entry.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |