summaryrefslogtreecommitdiff
path: root/util/cutils.c
diff options
context:
space:
mode:
authorWei Yang <richardw.yang@linux.intel.com>2019-06-10 08:41:59 +0800
committerJuan Quintela <quintela@redhat.com>2019-07-15 15:39:02 +0200
commitca3538039012258973ab75775109dbe9577097f6 (patch)
treee142b47f3f757434cc4e32ff22606e618119a06a /util/cutils.c
parentb6526c4b2122138833dacf7da74caabb84177344 (diff)
migration/xbzrle: update cache and current_data in one place
When we are not in the last_stage, we need to update the cache if page is not the same. Currently this procedure is scattered in two places and mixed with encoding status check. This patch extract this general step out to make the code a little bit easy to read. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20190610004159.20966-1-richardw.yang@linux.intel.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'util/cutils.c')
0 files changed, 0 insertions, 0 deletions