migration: use s->threshold_size inside migration_update_counters
commit0781c1ed1cbe1361b45f8fddfc85d202a517a88c
authorWei Wang <wei.w.wang@intel.com>
Mon, 22 Jan 2018 11:36:39 +0000 (22 19:36 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 6 Feb 2018 10:55:13 +0000 (6 10:55 +0000)
tree117dc24c47f0e6b873ebf4012f81c5831c65e384
parentee555cdf4d495ddd83633406e3099c5d1ef22e0a
migration: use s->threshold_size inside migration_update_counters

Fixes: b15df1ae50 ("migration: cleanup stats update into function")
The threshold size is changed to be recorded in s->threshold_size.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Reviewed-by: Peter Xu <peterx@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/migration.c