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>
Wed, 18 May 2022 12:12:42 +0000 (06:12 -0600)
commitd8c2237d0aa9c04b867ce1e281e2a30a86a68e3b
tree23262454498310bca9380fb9423496df4f61afd3
parent3d200242a6c968af321913b635fc4014b238cba4
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