Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <joannelkoong@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Joanne Koong and committed by
Jens Axboe
e29af2ab b8201b50

+4 -4
+4 -4
io_uring/rsrc.c
··· 1207 1207 1208 1208 /* Fill entries in data from dst that won't overlap with src */ 1209 1209 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]; 1211 1211 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++; 1215 1215 } 1216 1216 } 1217 1217