io_uring/rsrc: export io_check_coalesce_buffer
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 29 Nov 2024 13:34:23 +0000 (13:34 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Dec 2024 13:58:13 +0000 (06:58 -0700)
commitb82a795d7dd2cb53f58b07467b3fce2e39310fa1
tree36f04614f23e44f59a66460b3b3c9906afb0ee81
parentbc4062d81c3ab06c7087b80b45a35fce6829f794
io_uring/rsrc: export io_check_coalesce_buffer

io_try_coalesce_buffer() is a useful helper collecting useful info about
a set of pages, I want to reuse it for analysing ring/etc. mappings. I
don't need the entire thing and only interested if it can be coalesced
into a single page, but that's better than duplicating the parsing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/353b447953cd5d34c454a7d909bb6024c391d6e2.1732886067.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c
io_uring/rsrc.h