diff options
author | Peter Xu <peterx@redhat.com> | 2024-01-17 15:58:46 +0800 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-01-29 11:02:12 +0800 |
commit | a8629e0c2f6778a96f161f15215060cfab5ef2a4 (patch) | |
tree | 8c04d8889cbdb967dcaf3b55b29eaca612923b4e /migration/migration.h | |
parent | 918f620d30a9b0095b7824b8d77a2d6059a439d9 (diff) |
migration: Make threshold_size an uint64_t
It's always used to compare against another uint64_t. Make it always clear
that it's never a negative.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240117075848.139045-2-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/migration.h b/migration/migration.h index 17972dac34..a589ae8650 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -296,7 +296,7 @@ struct MigrationState { * this threshold; it's calculated from the requested downtime and * measured bandwidth, or avail-switchover-bandwidth if specified. */ - int64_t threshold_size; + uint64_t threshold_size; /* params from 'migrate-set-parameters' */ MigrationParameters parameters; |