io_uring: simplify iovec freeing in io_clean_op()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 17 Jun 2021 17:14:03 +0000 (18:14 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Jun 2021 15:22:02 +0000 (09:22 -0600)
commit1dacb4df4ebe61ec2005d7ab82ee38ffa7125ee7
tree579e74bb84e22ed2dab2ec77a2aa5c4c4cb74f5d
parentb8e64b530011162adda0e176150774d22326c50c
io_uring: simplify iovec freeing in io_clean_op()

We don't get REQ_F_NEED_CLEANUP for rw unless there is ->free_iovec set,
so remove the optimisation of NULL checking it inline, kfree() will take
care if that would ever be the case.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a233dc655d3d45bd4f69b73d55a61de46d914415.1623949695.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c