Rename mis->file to from_src_file
'file' becomes confusing when you have flows in each direction; rename to make it clear. This leaves just the main forward direction ms->file, which is used in a lot of places and is probably not worth renaming given the churn. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
e3dd74934f
commit
42e2aa5637
@ -48,7 +48,7 @@ typedef QLIST_HEAD(, LoadStateEntry) LoadStateEntry_Head;
|
|||||||
|
|
||||||
/* State for the incoming migration */
|
/* State for the incoming migration */
|
||||||
struct MigrationIncomingState {
|
struct MigrationIncomingState {
|
||||||
QEMUFile *file;
|
QEMUFile *from_src_file;
|
||||||
|
|
||||||
/* See savevm.c */
|
/* See savevm.c */
|
||||||
LoadStateEntry_Head loadvm_handlers;
|
LoadStateEntry_Head loadvm_handlers;
|
||||||
|
@ -95,7 +95,7 @@ MigrationIncomingState *migration_incoming_get_current(void)
|
|||||||
MigrationIncomingState *migration_incoming_state_new(QEMUFile* f)
|
MigrationIncomingState *migration_incoming_state_new(QEMUFile* f)
|
||||||
{
|
{
|
||||||
mis_current = g_new0(MigrationIncomingState, 1);
|
mis_current = g_new0(MigrationIncomingState, 1);
|
||||||
mis_current->file = f;
|
mis_current->from_src_file = f;
|
||||||
QLIST_INIT(&mis_current->loadvm_handlers);
|
QLIST_INIT(&mis_current->loadvm_handlers);
|
||||||
|
|
||||||
return mis_current;
|
return mis_current;
|
||||||
|
Loading…
Reference in New Issue
Block a user