]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Allocate l2meta only for cluster allocations
authorKevin Wolf <kwolf@redhat.com>
Fri, 7 Dec 2012 17:08:46 +0000 (18:08 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 13 Dec 2012 14:37:59 +0000 (15:37 +0100)
commitf50f88b9fea09fef12cc293126cf45dcf0ef600b
tree2060b173e0069405cca56846cce4fe44e793952c
parent060bee8943c27d4d53f65570fafaa2559fcd87c3
qcow2: Allocate l2meta only for cluster allocations

Even for writes to already allocated clusters, an l2meta is allocated,
though it stays effectively unused. After this patch, only allocating
requests still have one. Each l2meta now describes an in-flight request
that writes to clusters that are not yet hooked up in the L2 table.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c
block/qcow2.c
block/qcow2.h