mm/filemap: use page_cache_sync_ra() to kick off read-ahead
authorJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2024 01:52:58 +0000 (18:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Nov 2024 14:14:29 +0000 (07:14 -0700)
commit172066a58c2b9cbe40d4dc0521c529613ae8ba4f
treed82f7884bc724ef0b06ae4cf320b5c6381e81624
parent343c61a3f939d0ff367bfe3a4d7b8de60a40eb5a
mm/filemap: use page_cache_sync_ra() to kick off read-ahead

Rather than use the page_cache_sync_readahead() helper, define our own
ractl and use page_cache_sync_ra() directly. In preparation for needing
to modify ractl inside filemap_get_pages().

No functional changes in this patch.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/filemap.c