diff options
| author | Caleb Sander Mateos | 2025-02-28 17:16:07 -0700 |
|---|---|---|
| committer | Jens Axboe | 2025-02-28 19:35:22 -0700 |
| commit | bf931be52e5dad336a7576b028567e9179d6278c (patch) | |
| tree | 7d3386752588484e11048ab5a2b4a3ab50a6d235 /io_uring/rsrc.h | |
| parent | e6ea7ec494881bcf61b8f0f77f7cb3542f717ff2 (diff) | |
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>
Diffstat (limited to 'io_uring/rsrc.h')
| -rw-r--r-- | io_uring/rsrc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h index 6fe7b9e615bf..8f912aa6bcc9 100644 --- a/io_uring/rsrc.h +++ b/io_uring/rsrc.h @@ -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); |
