From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqIqd-0006ub-FS for qemu-devel@nongnu.org; Thu, 07 May 2015 06:16:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqIqX-0004We-Ia for qemu-devel@nongnu.org; Thu, 07 May 2015 06:16:07 -0400 Date: Thu, 7 May 2015 11:15:58 +0100 From: Stefan Hajnoczi Message-ID: <20150507101558.GF13985@stefanha-thinkpad.redhat.com> References: <1af76cc582835127135d1e2bbb7a26dbceafd15f.1430919406.git.berto@igalia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oFbHfjnMgUMsrGjO" Content-Disposition: inline In-Reply-To: <1af76cc582835127135d1e2bbb7a26dbceafd15f.1430919406.git.berto@igalia.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 2/7] qcow2: simplify qcow2_cache_put() and qcow2_cache_entry_mark_dirty() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: Stefan Hajnoczi , qemu-devel@nongnu.org, qemu-block@nongnu.org --oFbHfjnMgUMsrGjO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 06, 2015 at 04:39:26PM +0300, Alberto Garcia wrote: > Since all tables are now stored together, it is possible to obtain > the position of a particular table directly from its address, so the > operation becomes O(1). >=20 > Signed-off-by: Alberto Garcia > --- > block/qcow2-cache.c | 32 +++++++++++++++----------------- > 1 file changed, 15 insertions(+), 17 deletions(-) Reviewed-by: Stefan Hajnoczi --oFbHfjnMgUMsrGjO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVSzteAAoJEJykq7OBq3PI1msH+gItvDSKJt3Ixv+omxKukv3R 6cwewHgz0wPds0yoeunsXqz/TIi4WAFv6v+5tI2oL/mbcBLRW6ibdVigO2VEQBaT UcQxcoQlH8uLNthX9ChqNmzozbHjItIBQ8XAN3F17/hkAQLN21yDxWMtCoMH2hmo l8M/9kJLSHX3ebEX/xPMR27evtLXKTnl1UTHC8YLwpAa8tzojMFzNtoWZ9mpsE7W eZIXn93QKeFT3lA9xKVH/lS20Q0pY33+gsaiutQTzzpAizdvxRVkw2BrvoFZ/rQe FDfp6Pe+OlkDSip8o1l2LG7EyimOOGOMfcXBDSQFtm0N7kVhhF8wCU5pb3X5NkE= =MTNe -----END PGP SIGNATURE----- --oFbHfjnMgUMsrGjO--