aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-07-24 23:26:14 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-03-21 13:01:36 -0400
commit56a4d67c264e37014b8392cba9869c7fe904ed1e (patch)
tree6e5ba50d0d927bd0bd1317485bb1da891d42aeb6 /mm/filemap.c
parentmm/readahead: Align file mappings for non-DAX (diff)
downloadlinux-dev-56a4d67c264e37014b8392cba9869c7fe904ed1e.tar.xz
linux-dev-56a4d67c264e37014b8392cba9869c7fe904ed1e.zip
mm/readahead: Switch to page_cache_ra_order
do_page_cache_ra() was being exposed for the benefit of do_sync_mmap_readahead(). Switch it over to page_cache_ra_order() partly because it's a better interface but mostly for the benefit of the next patch. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 8f7ac3de9098..fe764225ae99 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -3027,7 +3027,7 @@ static struct file *do_sync_mmap_readahead(struct vm_fault *vmf)
ra->size = ra->ra_pages;
ra->async_size = ra->ra_pages / 4;
ractl._index = ra->start;
- do_page_cache_ra(&ractl, ra->size, ra->async_size);
+ page_cache_ra_order(&ractl, ra, 0);
return fpin;
}