On 12/15/2017 06:53 AM, Alberto Garcia wrote: > This patch updates get_cluster_table() to return L2 slices instead of > full L2 tables. > > The code itself needs almost no changes, it only needs to call > offset_to_l2_slice_index() instead of offset_to_l2_index(). This patch > also renames all the relevant variables and the documentation. > > Signed-off-by: Alberto Garcia <[email protected]> > --- > block/qcow2-cluster.c | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) > > diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c > index ecb75b6be6..3d43dc2307 100644 > --- a/block/qcow2-cluster.c > +++ b/block/qcow2-cluster.c > @@ -660,20 +660,20 @@ fail: > * get_cluster_table > * > * for a given disk offset, load (and allocate if needed) > - * the l2 table. > + * the appropiate slice of its l2 table.
s/appropiate/appropriate/ Reviewed-by: Eric Blake <[email protected]> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
