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>
Tue, 26 May 2020 19:32:03 +0000 (13:32 -0600)
commit9bfa529518cb2402d8f8384b95530cb0a7d2b16e
treed564924f244dd6c9162268bcbd9407b4c4bc3267
parente750bfe158b40e84bd4886a5f131556d8e7ad7a5
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