io_uring: modularize io_sqe_buffers_register
authorBijan Mottahedeh <bijan.mottahedeh@oracle.com>
Wed, 6 Jan 2021 20:39:11 +0000 (12:39 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Feb 2021 17:02:41 +0000 (10:02 -0700)
commit2b358604aa6e8c12d7efa14777fcc66c377682b0
treeb6b5c763028a15cd944ab148395e274179f98eb9
parent0a96bbe49994a46c1fea34619a501ead46aa7584
io_uring: modularize io_sqe_buffers_register

Move allocation of buffer management structures, and validation of
buffers into separate routines.

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c