Signed-off-by: Ray Lee <[email protected]>
---
block/mirror.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/block/mirror.c b/block/mirror.c
index b344182c74..6571961d90 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -110,7 +110,7 @@ struct MirrorOp {
uint64_t bytes;
/*
- * These pointers are set by mirror_co_read(), mirror_co_zero(), and
+ * These pointers are set by mirror_co_copy(), mirror_co_zero(), and
* mirror_co_discard() before yielding for the first time
*/
int64_t *bytes_handled;
@@ -348,7 +348,7 @@ mirror_wait_for_free_in_flight_slot(MirrorBlockJob *s)
* or (new_end - op->offset) if the tail is rounded up or down due to
* alignment or buffer limit.
*/
-static void coroutine_fn mirror_co_read(void *opaque)
+static void coroutine_fn mirror_co_copy(void *opaque)
{
MirrorOp *op = opaque;
MirrorBlockJob *s = op->s;
@@ -484,7 +484,7 @@ static unsigned mirror_perform(MirrorBlockJob *s, int64_t
offset,
bitmap_clear(s->zero_bitmap, offset / s->granularity,
DIV_ROUND_UP(bytes, s->granularity));
}
- co = qemu_coroutine_create(mirror_co_read, op);
+ co = qemu_coroutine_create(mirror_co_copy, op);
break;
case MIRROR_METHOD_ZERO:
/* s->zero_bitmap handled in mirror_co_zero */
@@ -510,7 +510,7 @@ static unsigned mirror_perform(MirrorBlockJob *s, int64_t
offset,
/* Assert that this value has been set */
assert(bytes_handled >= 0);
- /* Same assertion as in mirror_co_read() (and for mirror_co_read()
+ /* Same assertion as in mirror_co_copy() (and for mirror_co_copy()
* and mirror_co_discard(), bytes_handled == op->bytes, which
* is the @bytes parameter given to this function) */
assert(bytes_handled <= UINT_MAX);
--
2.43.5