[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 19/21] migration: Remove unused qemu_file_credit_transfer()
From: |
Juan Quintela |
Subject: |
[PATCH 19/21] migration: Remove unused qemu_file_credit_transfer() |
Date: |
Mon, 8 May 2023 15:09:07 +0200 |
After this change, nothing abuses QEMUFile to account for data
transferrefd during migration.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
migration/qemu-file.c | 5 -----
migration/qemu-file.h | 8 --------
2 files changed, 13 deletions(-)
diff --git a/migration/qemu-file.c b/migration/qemu-file.c
index 951f046c39..bfaba840ca 100644
--- a/migration/qemu-file.c
+++ b/migration/qemu-file.c
@@ -411,11 +411,6 @@ static ssize_t coroutine_mixed_fn
qemu_fill_buffer(QEMUFile *f)
return len;
}
-void qemu_file_credit_transfer(QEMUFile *f, size_t size)
-{
- f->total_transferred += size;
-}
-
/** Closes the file
*
* Returns negative error value if any error happened on previous operations or
diff --git a/migration/qemu-file.h b/migration/qemu-file.h
index 46029b951c..9feac5edbc 100644
--- a/migration/qemu-file.h
+++ b/migration/qemu-file.h
@@ -121,14 +121,6 @@ int qemu_put_qemu_file(QEMUFile *f_des, QEMUFile *f_src);
*/
int coroutine_mixed_fn qemu_peek_byte(QEMUFile *f, int offset);
void qemu_file_skip(QEMUFile *f, int size);
-/*
- * qemu_file_credit_transfer:
- *
- * Report on a number of bytes that have been transferred
- * out of band from the main file object I/O methods. This
- * accounting information tracks the total migration traffic.
- */
-void qemu_file_credit_transfer(QEMUFile *f, size_t size);
int qemu_file_get_error_obj(QEMUFile *f, Error **errp);
int qemu_file_get_error_obj_any(QEMUFile *f1, QEMUFile *f2, Error **errp);
void qemu_file_set_error_obj(QEMUFile *f, int ret, Error *err);
--
2.40.0
- Re: [PATCH 07/21] migration: Correct transferred bytes value, (continued)
- [PATCH 12/21] migration: Add a trace for migration_transferred_bytes, Juan Quintela, 2023/05/08
- [PATCH 13/21] migration: Use migration_transferred_bytes() to calculate rate_limit, Juan Quintela, 2023/05/08
- [PATCH 15/21] migration: Don't abuse qemu_file transferred for RDMA, Juan Quintela, 2023/05/08
- [PATCH 17/21] migration/rdma: Remove QEMUFile parameter when not used, Juan Quintela, 2023/05/08
- [PATCH 14/21] migration: We don't need the field rate_limit_used anymore, Juan Quintela, 2023/05/08
- [PATCH 16/21] migration/RDMA: It is accounting for zero/normal pages in two places, Juan Quintela, 2023/05/08
- [PATCH 19/21] migration: Remove unused qemu_file_credit_transfer(),
Juan Quintela <=
- [PATCH 11/21] migration: Move migration_total_bytes() to migration-stats.c, Juan Quintela, 2023/05/08
- [PATCH 09/21] qemu-file: Account for rate_limit usage on qemu_fflush(), Juan Quintela, 2023/05/08
- [PATCH 10/21] migration: Move rate_limit_max and rate_limit_used to migration_stats, Juan Quintela, 2023/05/08
- Re: [PATCH 10/21] migration: Move rate_limit_max and rate_limit_used to migration_stats, Cédric Le Goater, 2023/05/15