Skip to content

Commit

Permalink
migration/dirtyrate: Remove an extra parameter
Browse files Browse the repository at this point in the history
vcpu_dirty_stat_collect() has an unused parameter so remove it.

Signed-off-by: Wafer <wafer@jaguarmicro.com>
Reviewed-by: Hyman Huang <yong.huang@smartx.com>
Message-Id: <20231204012230.4123-1-wafer@jaguarmicro.com>
  • Loading branch information
Wafer authored and HuangSuiXiao committed Dec 25, 2023
1 parent 191710c commit 4918712
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions migration/dirtyrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ static DirtyPageRecord *vcpu_dirty_stat_alloc(VcpuStat *stat)
return g_new0(DirtyPageRecord, nvcpu);
}

static void vcpu_dirty_stat_collect(VcpuStat *stat,
DirtyPageRecord *records,
static void vcpu_dirty_stat_collect(DirtyPageRecord *records,
bool start)
{
CPUState *cpu;
Expand Down Expand Up @@ -158,7 +157,7 @@ int64_t vcpu_calculate_dirtyrate(int64_t calc_time_ms,
WITH_QEMU_LOCK_GUARD(&qemu_cpu_list_lock) {
gen_id = cpu_list_generation_id_get();
records = vcpu_dirty_stat_alloc(stat);
vcpu_dirty_stat_collect(stat, records, true);
vcpu_dirty_stat_collect(records, true);
}

duration = dirty_stat_wait(calc_time_ms, init_time_ms);
Expand All @@ -172,7 +171,7 @@ int64_t vcpu_calculate_dirtyrate(int64_t calc_time_ms,
cpu_list_unlock();
goto retry;
}
vcpu_dirty_stat_collect(stat, records, false);
vcpu_dirty_stat_collect(records, false);
}

for (i = 0; i < stat->nvcpu; i++) {
Expand Down

0 comments on commit 4918712

Please sign in to comment.