io_uring: inline io_read()'s iovec freeing
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 4 Feb 2021 13:52:03 +0000 (13:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Feb 2021 15:05:46 +0000 (08:05 -0700)
commit5ea5dd45844d1b727ab2a76f47d6e9aa65d1e921
treee0c98b883f1850c61a85d6b3ae9e93639d8db74a
parent7335e3bf9d0a92be09bb4f38d06ab22c40f0fead
io_uring: inline io_read()'s iovec freeing

io_read() has not the simpliest control flow with a lot of jumps and
it's hard to read. One of those is a out_free: label, which frees iovec.
However, from the middle of io_read() iovec is NULL'ed and so
kfree(iovec) is no-op, it leaves us with two place where we can inline
it and further clean up the code.

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