migration: use save_page_use_compression in flush_compressed_data
commit32b054954fb4a14b201f88d0b7fc94c60b8a740e
authorXiao Guangrong <xiaoguangrong@tencent.com>
Thu, 6 Sep 2018 07:01:01 +0000 (6 15:01 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 Sep 2018 11:27:43 +0000 (26 12:27 +0100)
treeb8f06d2a2b4606be1ccba233bd6565e4693427e5
parent76e030004f7fbabc2f978e8cd44052e17abd55b2
migration: use save_page_use_compression in flush_compressed_data

It avoids to touch compression locks if xbzrle and compression
are both enabled

Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20180906070101.27280-4-xiaoguangrong@tencent.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c