mpage: mpage_readpages() should submit IO as read-ahead
authorJens Axboe <axboe@kernel.dk>
Thu, 21 Jun 2018 01:00:25 +0000 (19:00 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jun 2018 01:00:25 +0000 (19:00 -0600)
commit15a1b3cf24a58e0e9b4ec8de8582decfb332d01d
treec875fe4d98ad9726f863c9a418ef27a198d466d5
parentb0b426925557bf05a185d0ed0734aea2296cbb66
mpage: mpage_readpages() should submit IO as read-ahead

a_ops->readpages() is only ever used for read-ahead, yet we don't
flag the IO being submitted as such. Fix that up. Any file system
that uses mpage_readpages() as its ->readpages() implementation
will now get this right.

Since we're passing in whether the IO is read-ahead or not, we
don't need to pass in the 'gfp' separately, as it is dependent
on the IO being read-ahead. Kill off that member.

Add some documentation notes on ->readpages() being purely for
read-ahead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/f2fs/data.c
fs/mpage.c
include/linux/fs.h