migration/multifd: Remove MultiFDPages_t::packet_num
authorFabiano Rosas <farosas@suse.de>
Thu, 4 Jan 2024 14:21:38 +0000 (11:21 -0300)
committerPeter Xu <peterx@redhat.com>
Tue, 16 Jan 2024 03:16:09 +0000 (11:16 +0800)
This was introduced by commit 34c55a94b1 ("migration: Create multipage
support") and never used.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20240104142144.9680-2-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/multifd.c
migration/multifd.h

index 9f353aecfa2cebb42b4bf20da80da3a18117b64c..3e650f5da084d40d1cf887203ef0b93baf227c5f 100644 (file)
@@ -250,7 +250,6 @@ static void multifd_pages_clear(MultiFDPages_t *pages)
 {
     pages->num = 0;
     pages->allocated = 0;
-    pages->packet_num = 0;
     pages->block = NULL;
     g_free(pages->offset);
     pages->offset = NULL;
index a835643b48c85ccbfc20d705eb67af5b09323d17..b0ff610c377b6f533c9559743f6b5f2232d96041 100644 (file)
@@ -58,8 +58,6 @@ typedef struct {
     uint32_t num;
     /* number of allocated pages */
     uint32_t allocated;
-    /* global number of generated multifd packets */
-    uint64_t packet_num;
     /* offset of each page */
     ram_addr_t *offset;
     RAMBlock *block;