summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-04-18 20:51:15 +0100
committerJens Axboe <axboe@kernel.dk>2022-04-24 18:02:52 -0600
commit7ac1edc4a9bbbfc43c4a1fa7c2884029df3363bf (patch)
tree8bf058285bdc4fb02891ef0e9091391cf3512a9e
parent25a15d3c668bf9cd23780fb0191b7f7f5054d879 (diff)
downloadlinux-7ac1edc4a9bbbfc43c4a1fa7c2884029df3363bf.tar.gz
linux-7ac1edc4a9bbbfc43c4a1fa7c2884029df3363bf.tar.bz2
linux-7ac1edc4a9bbbfc43c4a1fa7c2884029df3363bf.zip
io_uring: kill ctx arg from io_req_put_rsrc
The ctx argument of io_req_put_rsrc() is not used, kill it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/bb51bf3ff02775b03e6ea21bc79c25d7870d1644.1650311386.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--fs/io_uring.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 7841a196c868..fb7704d7c6eb 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -1345,7 +1345,7 @@ static inline void io_req_put_rsrc_locked(struct io_kiocb *req,
}
}
-static inline void io_req_put_rsrc(struct io_kiocb *req, struct io_ring_ctx *ctx)
+static inline void io_req_put_rsrc(struct io_kiocb *req)
{
if (req->rsrc_node)
io_rsrc_put_node(req->rsrc_node, 1);
@@ -2174,7 +2174,7 @@ static void __io_req_complete_post(struct io_kiocb *req, s32 res,
req->link = NULL;
}
}
- io_req_put_rsrc(req, ctx);
+ io_req_put_rsrc(req);
/*
* Selected buffer deallocation in io_clean_op() assumes that
* we don't hold ->completion_lock. Clean them here to avoid
@@ -2337,7 +2337,7 @@ static __cold void io_free_req(struct io_kiocb *req)
{
struct io_ring_ctx *ctx = req->ctx;
- io_req_put_rsrc(req, ctx);
+ io_req_put_rsrc(req);
io_dismantle_req(req);
io_put_task(req->task, 1);