qcow2: move decompression from qcow2-cluster.c to qcow2.c
commitf4b3e2a960ed571397292150539455a2dd981338
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 1 Nov 2018 18:27:34 +0000 (1 21:27 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Dec 2018 10:52:40 +0000 (14 11:52 +0100)
treebe0e3496d61696c1a2c29fab5cd555a9c0cf2ad1
parent6994fd78b9a98e9cd32ee45c23edba1919cfbdd0
qcow2: move decompression from qcow2-cluster.c to qcow2.c

Compression is done in threads in qcow2.c. We want to do decompression
in the same way, so, firstly, move it to the same file.

The only change is braces around if-body in decompress_buffer, to
satisfy checkpatch.

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-cluster.c
block/qcow2.c