io_uring/kbuf: move io_ring_head_to_buf() to kbuf.h
authorJens Axboe <axboe@kernel.dk>
Mon, 12 Aug 2024 15:25:36 +0000 (09:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Aug 2024 14:27:18 +0000 (08:27 -0600)
commit9effe20c5ef157c4580da6137fdc1a3adf1a0234
tree7885bd00d47328f81951f225eed52bd596f78a4a
parent19478abca623bed49ec06429c45c26c87ac0013a
io_uring/kbuf: move io_ring_head_to_buf() to kbuf.h

In preparation for using this helper in kbuf.h as well, move it there and
turn it into a macro.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c
io_uring/kbuf.h