Skip to content

Commit

Permalink
migration/multifd: Remove MultiFDPages_t::packet_num
Browse files Browse the repository at this point in the history
This was introduced by commit 34c55a9 ("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>
  • Loading branch information
Fabiano Rosas authored and xzpeter committed Jan 16, 2024
1 parent 0770ad4 commit dca1bc7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion migration/multifd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions migration/multifd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dca1bc7

Please sign in to comment.