qcow2: make more generic interface for qcow2_compress
commit6994fd78b9a98e9cd32ee45c23edba1919cfbdd0
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 1 Nov 2018 18:27:33 +0000 (1 21:27 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Dec 2018 10:52:40 +0000 (14 11:52 +0100)
tree0a1cbd63e8fa704f1ba0e04202b8f4c123bca946
parent19a44488532eeccb522c6ee6c36f08b6c69809b0
qcow2: make more generic interface for qcow2_compress

Give explicit size both for source and destination buffers, to make it
similar with decompression path and than cleanly reuse parameter
structure for decompression threads.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c