From: Andrew Morton Date: Tue, 15 Mar 2016 21:55:15 +0000 (-0700) Subject: fs/mpage.c:mpage_readpages(): use lru_to_page() helper X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=02c43638ec46fffd0c54b0d10819e36e0bc622f7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fs/mpage.c:mpage_readpages(): use lru_to_page() helper Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/mpage.c b/fs/mpage.c index 1480d3a18037..6bd9fd90964e 100644 --- a/fs/mpage.c +++ b/fs/mpage.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -366,7 +367,7 @@ mpage_readpages(struct address_space *mapping, struct list_head *pages, map_bh.b_state = 0; map_bh.b_size = 0; for (page_idx = 0; page_idx < nr_pages; page_idx++) { - struct page *page = list_entry(pages->prev, struct page, lru); + struct page *page = lru_to_page(pages); prefetchw(&page->flags); list_del(&page->lru);