summaryrefslogtreecommitdiff
path: root/io_uring/rsrc.c
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2025-02-28 17:16:07 -0700
committerJens Axboe <axboe@kernel.dk>2025-02-28 19:35:22 -0700
commitbf931be52e5dad336a7576b028567e9179d6278c (patch)
tree7d3386752588484e11048ab5a2b4a3ab50a6d235 /io_uring/rsrc.c
parente6ea7ec494881bcf61b8f0f77f7cb3542f717ff2 (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.c')
-rw-r--r--io_uring/rsrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c
index c9105030f0e3..ee4bfdd76f6b 100644
--- a/io_uring/rsrc.c
+++ b/io_uring/rsrc.c
@@ -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;