Basically no functional changes in this patch, just a preparation for later patch. Signed-off-by: Xiaoguang Wang <xiaoguang.wang@xxxxxxxxxxxxxxxxx> --- fs/io_uring.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index edfd7c3b8de6..219609c38e48 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -714,7 +714,7 @@ struct io_kiocb { u64 user_data; struct io_kiocb *link; - struct percpu_ref *fixed_file_refs; + struct fixed_file_ref_node *ref_node; /* * 1. used with ctx->iopoll_list with reads/writes @@ -1927,7 +1927,7 @@ static inline void io_put_file(struct io_kiocb *req, struct file *file, bool fixed) { if (fixed) - percpu_ref_put(req->fixed_file_refs); + percpu_ref_put(&req->ref_node->refs); else fput(file); } @@ -6344,8 +6344,8 @@ static struct file *io_file_get(struct io_submit_state *state, fd = array_index_nospec(fd, ctx->nr_user_files); file = io_file_from_index(ctx, fd); if (file) { - req->fixed_file_refs = &ctx->file_data->node->refs; - percpu_ref_get(req->fixed_file_refs); + req->ref_node = ctx->file_data->node; + percpu_ref_get(&req->ref_node->refs); } } else { trace_io_uring_file_get(ctx, fd); -- 2.17.2