mm: add kiocb_wait_page_async_init() helper
authorJens Axboe <axboe@kernel.dk>
Fri, 22 May 2020 16:18:23 +0000 (10:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 23 May 2020 01:30:04 +0000 (19:30 -0600)
commitebe71af4d7c3b7d805bb4119710842ba724b8cf0
tree43cc8a4dd9d2f2374ff7183706a190e915509a52
parentd96b6d712fcf7c9cabb5dbcbf81d8989db0c63e0
mm: add kiocb_wait_page_async_init() helper

Checks if the file supports it, and initializes the values that we need.
Caller passes in 'data' pointer, if any, and the callback function to
be used.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/pagemap.h