Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02c43638 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

fs/mpage.c:mpage_readpages(): use lru_to_page() helper

parent d86bd1be
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@
#include <linux/highmem.h>
#include <linux/highmem.h>
#include <linux/prefetch.h>
#include <linux/prefetch.h>
#include <linux/mpage.h>
#include <linux/mpage.h>
#include <linux/mm_inline.h>
#include <linux/writeback.h>
#include <linux/writeback.h>
#include <linux/backing-dev.h>
#include <linux/backing-dev.h>
#include <linux/pagevec.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_state = 0;
	map_bh.b_size = 0;
	map_bh.b_size = 0;
	for (page_idx = 0; page_idx < nr_pages; page_idx++) {
	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);
		prefetchw(&page->flags);
		list_del(&page->lru);
		list_del(&page->lru);