]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Wed, 6 Nov 2024 20:54:15 +0000 (13:54 -0700)
commit6af82f7614a2e31e7ef23e5e160697aef31e8edd
tree1db4bbe5230113effdbafe0ea4030a67e9aa515e
parent01ee194d1aba1202f0926d5047a2a4cf84d0e45d
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