Skip to content

Commit e29af2a

Browse files
joannekoongaxboe
authored andcommitted
io_uring/rsrc: rename misleading src_node variable in io_clone_buffers()
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent b8201b5 commit e29af2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

io_uring/rsrc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,11 +1207,11 @@ static int io_clone_buffers(struct io_ring_ctx *ctx, struct io_ring_ctx *src_ctx
12071207

12081208
/* Fill entries in data from dst that won't overlap with src */
12091209
for (i = 0; i < min(arg->dst_off, ctx->buf_table.nr); i++) {
1210-
struct io_rsrc_node *src_node = ctx->buf_table.nodes[i];
1210+
struct io_rsrc_node *node = ctx->buf_table.nodes[i];
12111211

1212-
if (src_node) {
1213-
data.nodes[i] = src_node;
1214-
src_node->refs++;
1212+
if (node) {
1213+
data.nodes[i] = node;
1214+
node->refs++;
12151215
}
12161216
}
12171217

0 commit comments

Comments
 (0)