qcow2: Update zero_single_l2() to support L2 slices
authorAlberto Garcia <berto@igalia.com>
Mon, 5 Feb 2018 14:33:25 +0000 (16:33 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 13 Feb 2018 16:00:00 +0000 (17:00 +0100)
commita9a9f8f0b6fae52296fe6cbcced9475aad485477
tree1749c9fb1da87f9e670f28d83e34e1aa6df8121a
parent21ab3add9c9564270a64c92fff448b3333b6d328
qcow2: Update zero_single_l2() to support L2 slices

zero_single_l2() limits the number of clusters to be zeroed to the
amount that fits inside an L2 table. Since we'll be loading L2 slices
instead of full tables we need to update that limit. The function is
renamed to zero_in_l2_slice() for clarity.

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>
Message-id: ebc16e7e79fa6969d8975ef487d679794de4fbcc.1517840877.git.berto@igalia.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c