migration: Rename ram_compressed_pages() to compress_ram_pages()
We are moving to have all functions exported from ram-compress.c to start with compress_. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231019110724.15324-12-quintela@redhat.com>
This commit is contained in:
parent
f639cfe515
commit
8258f2fa06
@ -516,7 +516,7 @@ void populate_compress(MigrationInfo *info)
|
|||||||
info->compression->compression_rate = compression_counters.compression_rate;
|
info->compression->compression_rate = compression_counters.compression_rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t ram_compressed_pages(void)
|
uint64_t compress_ram_pages(void)
|
||||||
{
|
{
|
||||||
return compression_counters.pages;
|
return compression_counters.pages;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ int compress_threads_load_setup(QEMUFile *f);
|
|||||||
void decompress_data_with_multi_threads(QEMUFile *f, void *host, int len);
|
void decompress_data_with_multi_threads(QEMUFile *f, void *host, int len);
|
||||||
|
|
||||||
void populate_compress(MigrationInfo *info);
|
void populate_compress(MigrationInfo *info);
|
||||||
uint64_t ram_compressed_pages(void);
|
uint64_t compress_ram_pages(void);
|
||||||
void update_compress_thread_counts(const CompressParam *param, int bytes_xmit);
|
void update_compress_thread_counts(const CompressParam *param, int bytes_xmit);
|
||||||
void compress_update_rates(uint64_t page_count);
|
void compress_update_rates(uint64_t page_count);
|
||||||
int compress_send_queued_data(CompressParam *param);
|
int compress_send_queued_data(CompressParam *param);
|
||||||
|
@ -932,7 +932,7 @@ uint64_t ram_get_total_transferred_pages(void)
|
|||||||
{
|
{
|
||||||
return stat64_get(&mig_stats.normal_pages) +
|
return stat64_get(&mig_stats.normal_pages) +
|
||||||
stat64_get(&mig_stats.zero_pages) +
|
stat64_get(&mig_stats.zero_pages) +
|
||||||
ram_compressed_pages() + xbzrle_counters.pages;
|
compress_ram_pages() + xbzrle_counters.pages;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void migration_update_rates(RAMState *rs, int64_t end_time)
|
static void migration_update_rates(RAMState *rs, int64_t end_time)
|
||||||
|
Loading…
Reference in New Issue
Block a user