io_uring/notif: refactor io_tx_ubuf_complete()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Apr 2024 12:50:11 +0000 (13:50 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:49 +0000 (08:10 -0600)
commit7e58d0af5a587e74f46f55b91a0197f750eba78c
tree9e916fa70db1a0d02d89760e823da9ec8343bc0c
parent686b56cbeedc9f4c72f9bb781918194a9a3e8334
io_uring/notif: refactor io_tx_ubuf_complete()

Flip the dec_and_test "if", that makes the function extension easier in
the future.

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