mm: allow read-ahead with IOCB_NOWAIT set
authorJens Axboe <axboe@kernel.dk>
Fri, 22 May 2020 14:59:42 +0000 (08:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 May 2020 21:00:57 +0000 (15:00 -0600)
commit967701d5254e78343c38ab687046ec1d71e3dd2a
tree0f07238b433427e610648873fd09b850a47c4649
parent381000ebbf4fed96c206571a04511c0667e38e18
mm: allow read-ahead with IOCB_NOWAIT set

The read-ahead shouldn't block, so allow it to be done even if
IOCB_NOWAIT is set in the kiocb.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/filemap.c