io_uring/rsrc: change ubuf->ubuf_end to length tracking
authorJens Axboe <axboe@kernel.dk>
Sun, 15 Sep 2024 14:53:45 +0000 (08:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 15 Sep 2024 15:15:22 +0000 (09:15 -0600)
commit9753c642a53bc4fbdef06d372d389dce7d8cddc2
tree7248fe2c5a1787092f7098b242beddddbe300989
parent8b0c6025a02ddec2b497f83e7d2f27a07f1d0653
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: Jens Axboe <axboe@kernel.dk>
io_uring/fdinfo.c
io_uring/rsrc.c
io_uring/rsrc.h