mm: add kiocb_wait_page_queue_init() helper
authorJens Axboe <axboe@kernel.dk>
Fri, 22 May 2020 16:18:23 +0000 (10:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 May 2020 19:24:09 +0000 (13:24 -0600)
commit731ce781bf06e719098e371f2a8eec480c958ae2
tree758d06eef559bfeb59c949b1187b776162af6525
parent7683e0d8c6767f26982993c53c649f1bcc65ef46
mm: add kiocb_wait_page_queue_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.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/pagemap.h