diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2016-03-15 17:55:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-15 19:55:16 -0400 |
commit | 02c43638ec46fffd0c54b0d10819e36e0bc622f7 (patch) | |
tree | 9784208b0463c42387ffccdbb90f6bf609b0bff5 /fs/mpage.c | |
parent | d86bd1bece6fc41d59253002db5441fe960a37f6 (diff) |
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
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 @@ | |||
24 | #include <linux/highmem.h> | 24 | #include <linux/highmem.h> |
25 | #include <linux/prefetch.h> | 25 | #include <linux/prefetch.h> |
26 | #include <linux/mpage.h> | 26 | #include <linux/mpage.h> |
27 | #include <linux/mm_inline.h> | ||
27 | #include <linux/writeback.h> | 28 | #include <linux/writeback.h> |
28 | #include <linux/backing-dev.h> | 29 | #include <linux/backing-dev.h> |
29 | #include <linux/pagevec.h> | 30 | #include <linux/pagevec.h> |
@@ -366,7 +367,7 @@ mpage_readpages(struct address_space *mapping, struct list_head *pages, | |||
366 | map_bh.b_state = 0; | 367 | map_bh.b_state = 0; |
367 | map_bh.b_size = 0; | 368 | map_bh.b_size = 0; |
368 | for (page_idx = 0; page_idx < nr_pages; page_idx++) { | 369 | for (page_idx = 0; page_idx < nr_pages; page_idx++) { |
369 | struct page *page = list_entry(pages->prev, struct page, lru); | 370 | struct page *page = lru_to_page(pages); |
370 | 371 | ||
371 | prefetchw(&page->flags); | 372 | prefetchw(&page->flags); |
372 | list_del(&page->lru); | 373 | list_del(&page->lru); |