]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring: add helper calculating region byte size
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 10 Nov 2025 13:04:49 +0000 (13:04 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Nov 2025 14:53:33 +0000 (07:53 -0700)
commit4aed5b4e6d276d2308d0ea8932b0c6ebfd3d19f8
tree0174d8328b8ae30afa74af28413a70f01731cd19
parent21bd7b14a32de35bc6c4fff7a739dc5d33ce04f1
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>
io_uring/memmap.c
io_uring/memmap.h