io_uring/eventfd: move trigger check into a helper
authorJens Axboe <axboe@kernel.dk>
Sat, 21 Sep 2024 07:51:44 +0000 (01:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Sep 2024 19:32:03 +0000 (13:32 -0600)
commit99cbb2da2770baf4961d88a1c606675815840a9d
tree8d011faff7f43e8abae4e5bffb2f6c88819fa1d3
parentfeb068ca2e650f34889421bea349b50f29a7416b
io_uring/eventfd: move trigger check into a helper

It's a bit hard to read what guards the triggering, move it into a
helper and add a comment explaining it too. This additionally moves
the ev_fd == NULL check in there as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/eventfd.c