aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-25 11:11:16 +0200
committerJuan Quintela <quintela@redhat.com>2023-10-31 08:44:33 +0100
commit0f8596180a304182d4fcf8686b73355de9f37a5d (patch)
treea580fed2fecbbe5edc836c8c6206a09e73e3310e /migration
parent897fd8bdce6c0939e0c35ae8fda4af09b5e5fb40 (diff)
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>
Diffstat (limited to 'migration')
-rw-r--r--migration/migration-stats.h4
-rw-r--r--migration/multifd.c3
-rw-r--r--migration/ram.c1
3 files changed, 0 insertions, 8 deletions
diff --git a/migration/migration-stats.h b/migration/migration-stats.h
index 68f3939188..05290ade76 100644
--- a/migration/migration-stats.h
+++ b/migration/migration-stats.h
@@ -98,10 +98,6 @@ typedef struct {
*/
Stat64 rdma_bytes;
/*
- * Total number of bytes transferred.
- */
- Stat64 transferred;
- /*
* Number of pages transferred that were full of zeros.
*/
Stat64 zero_pages;
diff --git a/migration/multifd.c b/migration/multifd.c
index e2a45c667a..ec58c58082 100644
--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -188,7 +188,6 @@ static int multifd_send_initial_packet(MultiFDSendParams *p, Error **errp)
return -1;
}
stat64_add(&mig_stats.multifd_bytes, size);
- stat64_add(&mig_stats.transferred, size);
return 0;
}
@@ -733,8 +732,6 @@ static void *multifd_send_thread(void *opaque)
stat64_add(&mig_stats.multifd_bytes,
p->next_packet_size + p->packet_len);
- stat64_add(&mig_stats.transferred,
- p->next_packet_size + p->packet_len);
p->next_packet_size = 0;
qemu_mutex_lock(&p->mutex);
p->pending_job--;
diff --git a/migration/ram.c b/migration/ram.c
index 8dd36e3d2b..cec9bd31d9 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -448,7 +448,6 @@ void ram_transferred_add(uint64_t bytes)
} else {
stat64_add(&mig_stats.downtime_bytes, bytes);
}
- stat64_add(&mig_stats.transferred, bytes);
}
struct MigrationOps {