summaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-04-29 17:51:22 +0200
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-09 22:21:46 +0200
commit0f312591d656c1d81bf2cf2a5642af478397a5dc (patch)
treef5034e5c9970f407d57f9dedfa3a180ce0c24f59 /mm/page_io.c
parentvboxsf: Convert vboxsf to read_folio (diff)
downloadlinux-0f312591d656c1d81bf2cf2a5642af478397a5dc.tar.xz
linux-0f312591d656c1d81bf2cf2a5642af478397a5dc.zip
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: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to '')
-rw-r--r--mm/page_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_io.c b/mm/page_io.c
index 89fbf3cae30f..1ae4be14f9d3 100644
--- a/mm/page_io.c
+++ b/mm/page_io.c
@@ -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;