diff options
author | Fabiano Rosas <farosas@suse.de> | 2024-01-04 11:21:40 -0300 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-01-16 11:16:09 +0800 |
commit | 6074f81625800743e4c374aecf7dd30774aaf6e0 (patch) | |
tree | b24e20169d7868cad1460f7c689083c555bc1751 /migration | |
parent | 9346fa1870784c70618bfd5a9e1f1da89de0c5ec (diff) |
migration/multifd: Change multifd_pages_init argument
The 'size' argument is actually the number of pages that fit in a
multifd packet. Change it to uint32_t and rename.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20240104142144.9680-4-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/multifd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/migration/multifd.c b/migration/multifd.c index 2dbc3ba836..25cbc6dc6b 100644 --- a/migration/multifd.c +++ b/migration/multifd.c @@ -236,12 +236,12 @@ static int multifd_recv_initial_packet(QIOChannel *c, Error **errp) return msg.id; } -static MultiFDPages_t *multifd_pages_init(size_t size) +static MultiFDPages_t *multifd_pages_init(uint32_t n) { MultiFDPages_t *pages = g_new0(MultiFDPages_t, 1); - pages->allocated = size; - pages->offset = g_new0(ram_addr_t, size); + pages->allocated = n; + pages->offset = g_new0(ram_addr_t, n); return pages; } |