diff options
| author | Juan Quintela <quintela@redhat.com> | 2023-04-19 18:16:05 +0200 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2023-04-24 11:28:59 +0200 |
| commit | 1a386e8de5995fb5478ea99baa6d3e71abcf4b80 (patch) | |
| tree | 4308db987fb6f932ecf484df51709ec7073cc910 /migration/migration.c | |
| parent | 3c764f9b2bc3e5eb5ed93ab45c2de6d599fef00f (diff) | |
| download | focaccia-qemu-1a386e8de5995fb5478ea99baa6d3e71abcf4b80.tar.gz focaccia-qemu-1a386e8de5995fb5478ea99baa6d3e71abcf4b80.zip | |
migration: Rename duplicate to zero_pages
Rest of counters that refer to pages has a _pages suffix. And historically, this showed the number of pages composed of the same character, here comes the name "duplicated". But since years ago, it refers to the number of zero_pages. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/migration.c')
| -rw-r--r-- | migration/migration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/migration.c b/migration/migration.c index 09b37a6603..c8b360a2df 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1142,7 +1142,7 @@ static void populate_ram_info(MigrationInfo *info, MigrationState *s) info->ram = g_malloc0(sizeof(*info->ram)); info->ram->transferred = stat64_get(&ram_counters.transferred); info->ram->total = ram_bytes_total(); - info->ram->duplicate = stat64_get(&ram_counters.duplicate); + info->ram->duplicate = stat64_get(&ram_counters.zero_pages); /* legacy value. It is not used anymore */ info->ram->skipped = 0; info->ram->normal = stat64_get(&ram_counters.normal); |