mpage: mpage_readpages() should submit IO as read-ahead
authorJens Axboe <axboe@kernel.dk>
Thu, 24 May 2018 15:41:39 +0000 (09:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 May 2018 15:57:30 +0000 (09:57 -0600)
commite157aab6c841a9739b40307ef9634b1399e63ac2
treeaee06aa3be5d8ab873b4d3f9da1d4dcc8fbeb337
parentbee797529d7c1ea4e2803fda067d20edbc00bc3d
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 it's ->readpages() implementation
will now get this right.

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