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>
Sun, 21 Jun 2020 15:11:09 +0000 (09:11 -0600)
commit061a4bda8affe46817f8bdf91c5a6da92245ce17
tree8d88f414dce35b71ddd0c8ae86e2a2f94c26ed1f
parenteb560f65955244740177d4798e5bca13fa5a1e3f
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