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, 18 Jun 2020 14:40:50 +0000 (08:40 -0600)
commit3617531b89f4500086a50d7158f9136d86a26012
treef998ada9e02bd5692c12ef000bd5db6646e8d250
parent640ad3dd754c02faf32fc96131c0e304793fb391
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