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, 1 Jun 2020 17:17:07 +0000 (11:17 -0600)
commit01ab4e495d6b27e2da71d908d39edaecd3df2b7f
tree313787208708f1b055545e4674f6baeaccd19f4e
parentd16b0b65145ad898a88a9dc34a4846ee5928ceca
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