diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2016-03-15 14:55:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-15 16:55:16 -0700 |
commit | 02c43638ec46fffd0c54b0d10819e36e0bc622f7 (patch) | |
tree | 9784208b0463c42387ffccdbb90f6bf609b0bff5 /fs/mpage.c | |
parent | d86bd1bece6fc41d59253002db5441fe960a37f6 (diff) | |
download | op-kernel-dev-02c43638ec46fffd0c54b0d10819e36e0bc622f7.zip op-kernel-dev-02c43638ec46fffd0c54b0d10819e36e0bc622f7.tar.gz |
fs/mpage.c:mpage_readpages(): use lru_to_page() helper
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/mpage.c')
-rw-r--r-- | fs/mpage.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,6 +24,7 @@ #include <linux/highmem.h> #include <linux/prefetch.h> #include <linux/mpage.h> +#include <linux/mm_inline.h> #include <linux/writeback.h> #include <linux/backing-dev.h> #include <linux/pagevec.h> @@ -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); |