修訂 | 8c0ec0b2b0622563a8620d0bf2bb60e90e18df18 (tree) |
---|---|
時間 | 2022-01-28 23:38:23 |
作者 | Juan Quintela <quintela@redh...> |
Commiter | Juan Quintela |
multifd: Rename pages_used to normal_pages
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
@@ -262,7 +262,7 @@ static void multifd_send_fill_packet(MultiFDSendParams *p) | ||
262 | 262 | |
263 | 263 | packet->flags = cpu_to_be32(p->flags); |
264 | 264 | packet->pages_alloc = cpu_to_be32(p->pages->allocated); |
265 | - packet->pages_used = cpu_to_be32(p->normal_num); | |
265 | + packet->normal_pages = cpu_to_be32(p->normal_num); | |
266 | 266 | packet->next_packet_size = cpu_to_be32(p->next_packet_size); |
267 | 267 | packet->packet_num = cpu_to_be64(p->packet_num); |
268 | 268 |
@@ -316,7 +316,7 @@ static int multifd_recv_unfill_packet(MultiFDRecvParams *p, Error **errp) | ||
316 | 316 | return -1; |
317 | 317 | } |
318 | 318 | |
319 | - p->normal_num = be32_to_cpu(packet->pages_used); | |
319 | + p->normal_num = be32_to_cpu(packet->normal_pages); | |
320 | 320 | if (p->normal_num > packet->pages_alloc) { |
321 | 321 | error_setg(errp, "multifd: received packet " |
322 | 322 | "with %u pages and expected maximum pages are %u", |
@@ -44,7 +44,8 @@ typedef struct { | ||
44 | 44 | uint32_t flags; |
45 | 45 | /* maximum number of allocated pages */ |
46 | 46 | uint32_t pages_alloc; |
47 | - uint32_t pages_used; | |
47 | + /* non zero pages */ | |
48 | + uint32_t normal_pages; | |
48 | 49 | /* size of the next packet that contains pages */ |
49 | 50 | uint32_t next_packet_size; |
50 | 51 | uint64_t packet_num; |