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, 24 May 2020 16:37:05 +0000 (10:37 -0600)
commit3ede2e90d4a242d09511a46d2adb391c10bf436e
tree6426e1f103d3da2846c6f1ce6357cd7f86aef528
parentf97d158b406621e974bc40db0382ecb27ee878c3
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