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>
Fri, 20 Dec 2024 15:30:39 +0000 (08:30 -0700)
commit504b77e9a4a84ad872794c1316389f391af7acef
tree441487456cc15dc9176914de4acda8a79195d65b
parent391bdf57ae02927e1033a960c742e630f00af258
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.

Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/filemap.c