OSDN Git Service

io_uring: simplify io_alloc_req()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Sep 2020 19:57:01 +0000 (22:57 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Oct 2020 02:38:45 +0000 (20:38 -0600)
commit291b2821e072e16b062c5a0e83f7642143c4399a
tree13c49761dfeaac08ebe8c248c89afcb27b2f9790
parent145cc8c665f406cc189cfcf15a9875689e2c73b8
io_uring: simplify io_alloc_req()

Extract common code from if/else branches. That is cleaner and optimised
even better.

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