diff options
author | Peter Zijlstra <peterz@infradead.org> | 2011-06-21 11:24:35 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2014-02-26 21:13:59 -0500 |
commit | f7fda662caeb119a3756aa02af79fbdfb159a334 (patch) | |
tree | 4075442c735b8f36bc798950926b33b097a86a07 /mm | |
parent | fd11257601d8458abb39b0eda76cf729360d09ca (diff) | |
download | linux-rt-f7fda662caeb119a3756aa02af79fbdfb159a334.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 39d530a425b5..1a3170f3cc1f 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 */ |