qcow2: Refactor update_refcount
authorKevin Wolf <kwolf@redhat.com>
Tue, 26 May 2009 12:36:02 +0000 (14:36 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 27 May 2009 14:45:15 +0000 (09:45 -0500)
commit44ff42de1c2df7255108d88e98c2bfe6e7bdbf88
treeb1fe5ec766593231f4cc6828969536019ea8c33a
parentade406775d3795141927bdd581edee2cb44da864
qcow2: Refactor update_refcount

This is a preparation patch with no functional changes. It moves the allocation
of new refcounts block to a new function and makes update_cluster_refcount (for
one cluster) call update_refcount (for multiple clusters) instead the other way
round.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/qcow2.c