summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2011-06-21 11:24:35 +0200
committerClark Williams <williams@redhat.com>2012-04-11 11:07:23 -0500
commit1d76c6c99520ddc74e5ad53c4b59b4044b5e5d47 (patch)
tree3d2e1cc4e38d93a2310611492ce363811f5ff409 /mm
parent46f1c71383b9b84c4aacddb1d57f4d6d98622a97 (diff)
mm-page-alloc-use-list-last-entry.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index a712fb9e04ce..f590a45749ba 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -663,7 +663,7 @@ static void free_pcppages_bulk(struct zone *zone, int count,
batch_free = to_free;
do {
- 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);
/* MIGRATE_MOVABLE list may include MIGRATE_RESERVEs */