Commit 0f312591 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle)
Browse files

mm: Convert swap_readpage to call read_folio instead of readpage



This commit is split out so it can be dropped when resolving
conflicts with Neil Brown's series to stop calling ->readpage in
the swap code.

Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent 4b4db9b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -336,7 +336,7 @@ int swap_readpage(struct page *page, bool synchronous)
		struct file *swap_file = sis->swap_file;
		struct address_space *mapping = swap_file->f_mapping;

		ret = mapping->a_ops->readpage(swap_file, page);
		ret = mapping->a_ops->read_folio(swap_file, page_folio(page));
		if (!ret)
			count_vm_event(PSWPIN);
		goto out;