From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCVw4-0002da-RR for qemu-devel@nongnu.org; Wed, 30 Jul 2014 11:37:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCVvw-0001mG-Gf for qemu-devel@nongnu.org; Wed, 30 Jul 2014 11:37:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCVvw-0001m4-85 for qemu-devel@nongnu.org; Wed, 30 Jul 2014 11:36:52 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6UFapL7015738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 30 Jul 2014 11:36:51 -0400 Message-ID: <53D91112.30703@redhat.com> Date: Wed, 30 Jul 2014 09:36:50 -0600 From: Eric Blake MIME-Version: 1.0 References: <1406311665-2814-1-git-send-email-mreitz@redhat.com> <1406311665-2814-7-git-send-email-mreitz@redhat.com> In-Reply-To: <1406311665-2814-7-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eehsLFPhcSMFwRq4oEd1EjqKfaKomS5Dv" Subject: Re: [Qemu-devel] [PATCH 6/8] block/qcow2: Simplify shared L2 handling in amend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eehsLFPhcSMFwRq4oEd1EjqKfaKomS5Dv Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/25/2014 12:07 PM, Max Reitz wrote: > Currently, we have a bitmap for keeping track of which clusters have > been created during the zero cluster expansion process. This was > necessary because we need to properly increase the refcount for shared > L2 tables. >=20 > However, now we can simply take the L2 refcount and use it for the > cluster allocated for expansion. This will be the correct refcount and > therefore we don't have to remember that cluster having been allocated > any more. >=20 > Signed-off-by: Max Reitz > --- > block/qcow2-cluster.c | 83 +++++++++++++------------------------------= -------- > 1 file changed, 21 insertions(+), 62 deletions(-) Slick - less code, and faster operation :) --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --eehsLFPhcSMFwRq4oEd1EjqKfaKomS5Dv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJT2RESAAoJEKeha0olJ0NquFkH/jwf9EfjDtn5A/gMkY2/bq3T W1V/m4BMNB1S1xxMwXwKbTHm3TQZTMLRgFRKPT78Gh0bI0Ajs0+EBFYXWx6U7rKf XQXdiR7vrQ1omidoISJoPJpdlpIN5uGFZlNLF/4dEwJACEI2L/eSdBHAwynOXO8D pBdMaDXUoRv7JCAwrrzX6Zayn4vvVFAjBl2Y0NI6CUVkogVNr3+TIdMpZg5uiowJ VqhusF1/rX9WRe3rx6O6JcQb5rzPPrZKJ6HRZ5pAD3WpzDRbyPVkUJ2cFqg1hY5K LI1bkN1RlzSgamAsiZleF1YxNA71tPPK2H7/+XBOh0L/I8fwSVxERB7xHw/QoKg= =TGkG -----END PGP SIGNATURE----- --eehsLFPhcSMFwRq4oEd1EjqKfaKomS5Dv--