From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqIrw-0008Mc-EX for qemu-devel@nongnu.org; Thu, 07 May 2015 06:17:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqIrt-0004m7-K0 for qemu-devel@nongnu.org; Thu, 07 May 2015 06:17:28 -0400 Date: Thu, 7 May 2015 11:17:22 +0100 From: Stefan Hajnoczi Message-ID: <20150507101722.GH13985@stefanha-thinkpad.redhat.com> References: <119060b56f474e32cbbe9327303a8a690f3f24e0.1430919406.git.berto@igalia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qM81t570OJUP5TU/" Content-Disposition: inline In-Reply-To: <119060b56f474e32cbbe9327303a8a690f3f24e0.1430919406.git.berto@igalia.com> Subject: Re: [Qemu-devel] [PATCH 4/7] qcow2: remove qcow2_cache_find_entry_to_replace() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel@nongnu.org, qemu-block@nongnu.org --qM81t570OJUP5TU/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 06, 2015 at 04:39:28PM +0300, Alberto Garcia wrote: > A cache miss means that the whole array was traversed and the entry > we were looking for was not found, so there's no need to traverse it > again in order to select an entry to replace. >=20 > Signed-off-by: Alberto Garcia > --- > block/qcow2-cache.c | 45 ++++++++++++++++----------------------------- > 1 file changed, 16 insertions(+), 29 deletions(-) Reviewed-by: Stefan Hajnoczi --qM81t570OJUP5TU/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVSzuyAAoJEJykq7OBq3PIoykH/0uK3m0O+eKiAcNWCTGUWqAv /7Os1i7njOYDWEtG+7g+SPFHm4dOVyMwCbGHOjGisXK0mlArrQ8MagyaWl0ARgD/ ksDVvgExkULTJJ0M+wHI22CxyG78mqSU+lWw7cDLy2l1MM/Sfb3gGgN+RqhP7Yc0 cRUrIyJUALxOjTVGMeFOMJCJ8Z44vw7ut0H2k5HNfZDpN7Xm2QbPfp5ZIzRUUgwn P/P9luZ77ymyFQHRUujDYwYIbE3vIb2gpo6ntjXyLIdyfUUh7yCPd/hWYwLHPMB5 5WQ1EG1J1crtPMWzD1ngIKhil/78NecUWysBP6/ZXyjWntFmzZrwvkXLQp7EFvU= =BeGa -----END PGP SIGNATURE----- --qM81t570OJUP5TU/--