Received: from eggs.gnu.org ([2001:4830:134:3::10]:46836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egy15-0001cM-JR for qemu-devel@nongnu.org; Wed, 31 Jan 2018 14:25:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egy14-0004FJ-N2 for qemu-devel@nongnu.org; Wed, 31 Jan 2018 14:25:55 -0500 References: <344e6913766e24ed55592a84ceb8fad3ee59028b.1516978645.git.berto@igalia.com> From: Max Reitz Message-ID: Date: Wed, 31 Jan 2018 20:25:44 +0100 MIME-Version: 1.0 In-Reply-To: <344e6913766e24ed55592a84ceb8fad3ee59028b.1516978645.git.berto@igalia.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iFbCjIbHuaV6NvGzQbhZwY9fL05b1onyb" Subject: Re: [Qemu-devel] [PATCH v3 02/39] qcow2: Add table size field to Qcow2Cache List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf , Eric Blake , Anton Nefedov , "Denis V . Lunev" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --iFbCjIbHuaV6NvGzQbhZwY9fL05b1onyb From: Max Reitz To: Alberto Garcia , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf , Eric Blake , Anton Nefedov , "Denis V . Lunev" Message-ID: Subject: Re: [PATCH v3 02/39] qcow2: Add table size field to Qcow2Cache References: <344e6913766e24ed55592a84ceb8fad3ee59028b.1516978645.git.berto@igalia.com> In-Reply-To: <344e6913766e24ed55592a84ceb8fad3ee59028b.1516978645.git.berto@igalia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2018-01-26 15:59, Alberto Garcia wrote: > The table size in the qcow2 cache is currently equal to the cluster > size. This doesn't allow us to use the cache memory efficiently, > particularly with large cluster sizes, so we need to be able to have > smaller cache tables that are independent from the cluster size. This > patch adds a new field to Qcow2Cache that we can use instead of the > cluster size. >=20 > The current table size is still being initialized to the cluster size, > so there are no semantic changes yet, but this patch will allow us to > prepare the rest of the code and simplify a few function calls. >=20 > Signed-off-by: Alberto Garcia > Reviewed-by: Eric Blake > --- > block/qcow2-cache.c | 29 ++++++++++++++--------------- > 1 file changed, 14 insertions(+), 15 deletions(-) Reviewed-by: Max Reitz --iFbCjIbHuaV6NvGzQbhZwY9fL05b1onyb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEkb62CjDbPohX0Rgp9AfbAGHVz0AFAlpyGDkSHG1yZWl0ekBy ZWRoYXQuY29tAAoJEPQH2wBh1c9ASzEH/jPXiTXmBMISIGHiqdZucQ+gnUWu5XXT 7U+CqBay5FvJv3G+fzFMp6qaH1Cr6Ckri6KkEfBmqyynTRbR7h6EUS4qFZePB680 Fqfm9qEszg4YILDvR2gNd/F78Ei38UV19TmdjvzJyC4P2H/g8+Z20CIWUWRJ13P0 8L9KuQPHV3FFePez36GS9dIlh9xfu3h3NoX7NdT/GCqC8RowSDoTILhQxcKwjorG 5Mm3VQlmw9aYnpGScXSTX0qB306XbrQPAWilgp5JS73XsKPdK8zi9zGFk4taWw1w 9KYuynKzekZXjEL7zLgKnaCv72MJ8K2KFy3/l7FLfdrU5cr27gMXHzw= =drDy -----END PGP SIGNATURE----- --iFbCjIbHuaV6NvGzQbhZwY9fL05b1onyb--