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>
Mon, 22 Jun 2020 02:44:26 +0000 (20:44 -0600)
commitd1932dc3dc268f8dd5201c64971324d06ba977cc
treebee2f7f23dd7bdf3132f89d993ac2b1b051fced1
parent8730f12b7962b21ea9ad2756abce1e205d22db84
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