qcow2: Simplify calculation for COW area at the end
authorKevin Wolf <kwolf@redhat.com>
Tue, 22 May 2012 14:58:48 +0000 (16:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2012 12:03:43 +0000 (14:03 +0200)
commitcdba7fee1daa8865bac2d69da288171fe7c21aae
tree6a9dd8e7fc5a2646dadc177e42414a886fba290b
parent6af4e9ead4ec9491259c9861b1b35f9abee24a66
qcow2: Simplify calculation for COW area at the end

copy_sectors() always uses the sum (cluster_offset + n_start) or
(start_sect + n_start), so if some value is added to both cluster_offset
and start_sect, and subtracted from n_start, it's cancelled out anyway.

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