commit | 87094465d01a248cd888b81da0e6bc10324d4dc0 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Sun Apr 11 01:46:36 2021 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Apr 12 09:32:58 2021 -0600 |
tree | 006814e726070f5fe04f102d328cfdd24c574b05 | |
parent | 7f61a1e9ef511660d66ea926b5899559fe94b1d0 [diff] |
io_uring: cleanup buffer register In preparation for more changes do a little cleanup of io_sqe_buffers_register(). Move all args/invariant checking into it from io_buffers_map_alloc(), because it's confusing. And add a bit more cleaning for the loop. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/93292cb9708c8455e5070cc855861d94e11ca042.1618101759.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>