Skip to content
Commit 9753c642 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/rsrc: change ubuf->ubuf_end to length tracking



If we change it to tracking ubuf->start + ubuf->len, then we can reduce
the size of struct io_mapped_ubuf by another 4 bytes, effectively 8
bytes, as a hole is eliminated too.

This shrinks io_mapped_ubuf to 32 bytes.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8b0c6025
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment