summaryrefslogtreecommitdiff
path: root/block/qcow2.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-09-03 00:25:07 +0200
committerKevin Wolf <kwolf@redhat.com>2014-10-23 15:34:02 +0200
commit17bd5f472754acd2458b53dc02a30d5651e6dd79 (patch)
treed8e77d116346cf9f284134985a9947e5840da0f0 /block/qcow2.c
parent234764eed1aab56a657a161e9a0c65730442e6f8 (diff)
downloadqemu-17bd5f472754acd2458b53dc02a30d5651e6dd79.tar.gz
qemu-17bd5f472754acd2458b53dc02a30d5651e6dd79.tar.bz2
qemu-17bd5f472754acd2458b53dc02a30d5651e6dd79.zip
qcow2: Drop REFCOUNT_SHIFT
With BDRVQcowState.refcount_block_bits, we don't need REFCOUNT_SHIFT anymore. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.c')
-rw-r--r--block/qcow2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/qcow2.c b/block/qcow2.c
index 7a2c66f92b..d031515838 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -1874,7 +1874,7 @@ static int qcow2_create2(const char *filename, int64_t total_size,
.l1_size = cpu_to_be32(0),
.refcount_table_offset = cpu_to_be64(cluster_size),
.refcount_table_clusters = cpu_to_be32(1),
- .refcount_order = cpu_to_be32(3 + REFCOUNT_SHIFT),
+ .refcount_order = cpu_to_be32(4),
.header_length = cpu_to_be32(sizeof(*header)),
};