Skip to content

Commit 0f85961

Browse files
author
Juan Quintela
committed
migration: Remove transferred atomic counter
After last commit, it is a write only variable. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231025091117.6342-12-quintela@redhat.com>
1 parent 897fd8b commit 0f85961

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

migration/migration-stats.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ typedef struct {
9797
* Number of bytes sent through RDMA.
9898
*/
9999
Stat64 rdma_bytes;
100-
/*
101-
* Total number of bytes transferred.
102-
*/
103-
Stat64 transferred;
104100
/*
105101
* Number of pages transferred that were full of zeros.
106102
*/

migration/multifd.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ static int multifd_send_initial_packet(MultiFDSendParams *p, Error **errp)
188188
return -1;
189189
}
190190
stat64_add(&mig_stats.multifd_bytes, size);
191-
stat64_add(&mig_stats.transferred, size);
192191
return 0;
193192
}
194193

@@ -733,8 +732,6 @@ static void *multifd_send_thread(void *opaque)
733732

734733
stat64_add(&mig_stats.multifd_bytes,
735734
p->next_packet_size + p->packet_len);
736-
stat64_add(&mig_stats.transferred,
737-
p->next_packet_size + p->packet_len);
738735
p->next_packet_size = 0;
739736
qemu_mutex_lock(&p->mutex);
740737
p->pending_job--;

migration/ram.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ void ram_transferred_add(uint64_t bytes)
448448
} else {
449449
stat64_add(&mig_stats.downtime_bytes, bytes);
450450
}
451-
stat64_add(&mig_stats.transferred, bytes);
452451
}
453452

454453
struct MigrationOps {

0 commit comments

Comments
 (0)