OSDN Git Service

migration: rename qemu_update_position to qemu_file_credit_transfer
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 20 Jun 2022 11:01:51 +0000 (12:01 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 22 Jun 2022 18:33:43 +0000 (19:33 +0100)
commit1a93bd2f60acbf7eb3583805f9d6605d909d403f
tree4aed28304225d59b8b0876fdf58ce2a9fcf8f45f
parentfbfa6404e597920ad72510461e0b0fed5243ce1d
migration: rename qemu_update_position to qemu_file_credit_transfer

The qemu_update_position method name gives the misleading impression
that it is changing the current file offset. Most of the files are
just streams, however, so there's no concept of a file offset in the
general case.

What this method is actually used for is to report on the number of
bytes that have been transferred out of band from the main I/O methods.
This new name better reflects this purpose.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/qemu-file.c
migration/qemu-file.h
migration/ram.c