diff options
author | Peter Zijlstra <peterz@infradead.org> | 2011-06-21 11:24:35 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-03-01 09:28:28 -0600 |
commit | bc60b5d57aa57a00ccba24fa7e72ecb6fb89e5a3 (patch) | |
tree | 687a8ab1af2ee0045e01d5cbbf0aa7f799201a78 /mm/page_alloc.c | |
parent | b582b20b827a1521aa44eaf431c2d47040614d80 (diff) |
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 485be8976bba..3344154a8a36 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -625,7 +625,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 */ |