Skip to content
Commit 340f634a authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/filetable: don't unnecessarily clear/reset bitmap



If we're updating an existing slot, we clear the slot bitmap only to
set it again right after. Just leave the bit set rather than toggle
it off and on, and move the unused slot setting into the branch of
not already having a file occupy this slot.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8a565304
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment