diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-07-24 23:26:14 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-21 13:01:36 -0400 |
commit | 56a4d67c264e37014b8392cba9869c7fe904ed1e (patch) | |
tree | 6e5ba50d0d927bd0bd1317485bb1da891d42aeb6 /mm/filemap.c | |
parent | 1854bc6e2420472676c5c90d3d6b15f6cd640e40 (diff) | |
download | lwn-56a4d67c264e37014b8392cba9869c7fe904ed1e.tar.gz lwn-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.c | 2 |
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; } |