diff options
| author | Fabiano Rosas <farosas@suse.de> | 2024-08-27 14:45:48 -0300 |
|---|---|---|
| committer | Fabiano Rosas <farosas@suse.de> | 2024-09-03 16:24:34 -0300 |
| commit | bc112a6c9008c242e13fcd8a642828266e5dceeb (patch) | |
| tree | 7587ad1bf78797c1d2ba9ef35f4c1ba3302de0e6 /migration/multifd-zstd.c | |
| parent | 854f67fa385c846c18a595857a5cf8a8e9ab35ed (diff) | |
| download | focaccia-qemu-bc112a6c9008c242e13fcd8a642828266e5dceeb.tar.gz focaccia-qemu-bc112a6c9008c242e13fcd8a642828266e5dceeb.zip | |
migration/multifd: Reduce access to p->pages
I'm about to replace the p->pages pointer with an opaque pointer, so do a cleanup now to reduce direct accesses to p->page, which makes the next diffs cleaner. Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'migration/multifd-zstd.c')
| -rw-r--r-- | migration/multifd-zstd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/multifd-zstd.c b/migration/multifd-zstd.c index ca17b7e310..cb6075a9a5 100644 --- a/migration/multifd-zstd.c +++ b/migration/multifd-zstd.c @@ -138,7 +138,7 @@ static int zstd_send_prepare(MultiFDSendParams *p, Error **errp) if (i == pages->normal_num - 1) { flush = ZSTD_e_flush; } - z->in.src = p->pages->block->host + pages->offset[i]; + z->in.src = pages->block->host + pages->offset[i]; z->in.size = p->page_size; z->in.pos = 0; |