io_uring/rsrc: declare io_find_buf_node() in header file
Declare io_find_buf_node() in io_uring/rsrc.h so it can be called from other files. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Link: https://lore.kernel.org/r/20250301001610.678223-1-csander@purestorage.com [axboe: keep the inline for local hot path usage] Signed-off-by: Jens Axboe <axboe@kernel.dk>pull/1188/head
parent
e6ea7ec494
commit
bf931be52e
|
|
@ -1074,8 +1074,8 @@ static int io_import_fixed(int ddir, struct iov_iter *iter,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline struct io_rsrc_node *io_find_buf_node(struct io_kiocb *req,
|
||||
unsigned issue_flags)
|
||||
inline struct io_rsrc_node *io_find_buf_node(struct io_kiocb *req,
|
||||
unsigned issue_flags)
|
||||
{
|
||||
struct io_ring_ctx *ctx = req->ctx;
|
||||
struct io_rsrc_node *node;
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ void io_free_rsrc_node(struct io_ring_ctx *ctx, struct io_rsrc_node *node);
|
|||
void io_rsrc_data_free(struct io_ring_ctx *ctx, struct io_rsrc_data *data);
|
||||
int io_rsrc_data_alloc(struct io_rsrc_data *data, unsigned nr);
|
||||
|
||||
struct io_rsrc_node *io_find_buf_node(struct io_kiocb *req,
|
||||
unsigned issue_flags);
|
||||
int io_import_reg_buf(struct io_kiocb *req, struct iov_iter *iter,
|
||||
u64 buf_addr, size_t len, int ddir,
|
||||
unsigned issue_flags);
|
||||
|
|
|
|||
Loading…
Reference in New Issue