aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorSteve Sistare <steven.sistare@oracle.com>2024-03-11 10:48:50 -0700
committerPeter Xu <peterx@redhat.com>2024-03-11 16:28:59 -0400
commit3a6813b68cf21a366522564f83f885bf2657dcc8 (patch)
tree8369a19450510e242f041e5e311b4f40ecc2ee40 /system
parent7dcb3c87d87cbf3359c9bbef8066e5195ee92f4d (diff)
migration: export migration_is_active
Delete the MigrationState parameter from migration_is_active so it can be exported and used without including migration.h. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.org/r/1710179338-294359-4-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'system')
-rw-r--r--system/dirtylimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/dirtylimit.c b/system/dirtylimit.c
index 774ff44f79..051e0311c1 100644
--- a/system/dirtylimit.c
+++ b/system/dirtylimit.c
@@ -83,7 +83,7 @@ static void vcpu_dirty_rate_stat_collect(void)
int64_t period = DIRTYLIMIT_CALC_TIME_MS;
if (migrate_dirty_limit() &&
- migration_is_active(s)) {
+ migration_is_active()) {
period = s->parameters.x_vcpu_dirty_limit_period;
}