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>
Sat, 23 May 2020 14:26:46 +0000 (08:26 -0600)
commit493ce66a93cbdd6d3acc75b0da8abf7e03c8bfb1
tree4077842e82a6da33cdf49677b917f117eeaeee79
parenta0eb2ddbef76865a6a0fe4374378fb5cf57685e4
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/pagemap.h