io_uring: add io_pin_pages() helper
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Apr 2022 19:02:27 +0000 (13:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 15 May 2022 17:21:56 +0000 (11:21 -0600)
commitebe40c671df7c7f6db4ec3622df6b186a0d2562d
treeb314b2840fcc0f7046bfe563afb05cd4b59d17e9
parent4b40fd01b975ad689e68538371f57ab33a940727
io_uring: add io_pin_pages() helper

Abstract this out from io_sqe_buffer_register() so we can use it
elsewhere too without duplicating this code.

No intended functional changes in this patch.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c