io_uring: add helper calculating region byte size

There has been type related issues with region size calculation, add an
utility helper function that returns the size and handles type
conversions right.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Pavel Begunkov 2025-11-10 13:04:49 +00:00 • committed by Jens Axboe
commit 4aed5b4e6d
2 changed files with 7 additions and 2 deletions