Commit 6af82f76 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/rsrc: encode node type and ctx together



Rather than keep the type field separate rom ctx, use the fact that we
can encode up to 4 types of nodes in the LSB of the ctx pointer. Doesn't
reclaim any space right now on 64-bit archs, but it leaves a full int
for future use.

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