qcow2: Update qcow2_alloc_cluster_link_l2() to support L2 slices
authorAlberto Garcia <berto@igalia.com>
Mon, 5 Feb 2018 14:33:21 +0000 (16:33 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 13 Feb 2018 15:59:59 +0000 (16:59 +0100)
commita002c0b09d3c48484225b268d0d3df8615d7f56c
tree17faeb2058c81ac6d5a1db7b5d69e23c4897f03e
parentfd630039c0478919434cd2f9a4b9a72f61312624
qcow2: Update qcow2_alloc_cluster_link_l2() to support L2 slices

There's a loop in this function that iterates over the L2 entries in a
table, so now we need to assert that it remains within the limits of
an L2 slice.

Apart from that, this function doesn't need any additional changes, so
this patch simply updates the variable name from l2_table to l2_slice.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: f9846a1c2efc51938e877e2a25852d9ab14797ff.1517840877.git.berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c