]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
io_uring/rsrc: rename misleading src_node variable in io_clone_buffers()
authorJoanne Koong <joannelkoong@gmail.com>
Thu, 4 Dec 2025 21:51:15 +0000 (13:51 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Dec 2025 22:46:13 +0000 (15:46 -0700)
The variable holds nodes from the destination ring's existing buffer
table. In io_clone_buffers(), the term "src" is used to refer to the
source ring.

Rename to node for clarity.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c

index 5ad3d10413eb538a29084f4c8011660e9afe69fa..04f56212398a57ed6d0bdc53307e154adda71a7f 100644 (file)
@@ -1207,11 +1207,11 @@ static int io_clone_buffers(struct io_ring_ctx *ctx, struct io_ring_ctx *src_ctx
 
        /* Fill entries in data from dst that won't overlap with src */
        for (i = 0; i < min(arg->dst_off, ctx->buf_table.nr); i++) {
-               struct io_rsrc_node *src_node = ctx->buf_table.nodes[i];
+               struct io_rsrc_node *node = ctx->buf_table.nodes[i];
 
-               if (src_node) {
-                       data.nodes[i] = src_node;
-                       src_node->refs++;
+               if (node) {
+                       data.nodes[i] = node;
+                       node->refs++;
                }
        }