io_uring/rsrc: encode node type and ctx together
authorJens Axboe <axboe@kernel.dk>
Sun, 3 Nov 2024 15:17:28 +0000 (08:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 3 Nov 2024 17:43:41 +0000 (10:43 -0700)
commit020853e1546816a308067e6690d39b1a9c31a69d
treee7bd7c186a5bca6d44b2f890d4f7d543ae8a5a70
parentaed057d946e40f7d878f70868e4d467e0680dff1
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: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c
io_uring/rsrc.h