io_uring/rsrc: remove unused parameter ctx for io_rsrc_node_alloc()

io_uring_ctx parameter for io_rsrc_node_alloc() is unused for now.
This patch removes the parameter and fixes the callers accordingly.

Signed-off-by: Sidong Yang <sidong.yang@furiosa.ai>
Link: https://lore.kernel.org/r/20250115142033.658599-1-sidong.yang@furiosa.ai
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Sidong Yang
2025-01-15 14:20:31 +00:00
committed by Jens Axboe
parent bb2d76344b
commit b73de0da50
3 changed files with 7 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ static int io_install_fixed_file(struct io_ring_ctx *ctx, struct file *file,
if (slot_index >= ctx->file_table.data.nr)
return -EINVAL;
node = io_rsrc_node_alloc(ctx, IORING_RSRC_FILE);
node = io_rsrc_node_alloc(IORING_RSRC_FILE);
if (!node)
return -ENOMEM;