Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
migration: Remove unused qemu_file_credit_transfer()
After this change, nothing abuses QEMUFile to account for data
transferrefd during migration.

Reviewed-by: Leonardo Bras <leobras@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20230515195709.63843-15-quintela@redhat.com>
  • Loading branch information
Juan Quintela committed May 30, 2023
1 parent af62826 commit 400d034
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions migration/qemu-file.c
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions migration/qemu-file.h
Expand Up @@ -122,14 +122,6 @@ bool qemu_file_buffer_empty(QEMUFile *file);
*/
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);
Expand Down

0 comments on commit 400d034

Please sign in to comment.