diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-06-10 08:41:59 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2019-07-15 15:39:02 +0200 |
commit | ca3538039012258973ab75775109dbe9577097f6 (patch) | |
tree | e142b47f3f757434cc4e32ff22606e618119a06a /util/cutils.c | |
parent | b6526c4b2122138833dacf7da74caabb84177344 (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