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, 25 Jan 2021 15:18:36 +0000 (08:18 -0700)
commit3d2c79c619cfabc5f21ce4a5bd9f979e838c5b3e
tree698f13d31a70a06566807ce4cab8f1e3bae78467
parent89a1613ac529928e9f7301b90ab51d501e04b13a
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