From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqjy5-0007Za-Lx for qemu-devel@nongnu.org; Fri, 08 May 2015 11:13:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yqjy1-0005zz-Mx for qemu-devel@nongnu.org; Fri, 08 May 2015 11:13:37 -0400 Message-ID: <554CD25D.2070809@redhat.com> Date: Fri, 08 May 2015 17:12:29 +0200 From: Max Reitz MIME-Version: 1.0 References: <1af76cc582835127135d1e2bbb7a26dbceafd15f.1430919406.git.berto@igalia.com> In-Reply-To: <1af76cc582835127135d1e2bbb7a26dbceafd15f.1430919406.git.berto@igalia.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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 , qemu-devel@nongnu.org Cc: Stefan Hajnoczi , qemu-block@nongnu.org On 06.05.2015 15:39, 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). > > Signed-off-by: Alberto Garcia > --- > block/qcow2-cache.c | 32 +++++++++++++++----------------- > 1 file changed, 15 insertions(+), 17 deletions(-) Reviewed-by: Max Reitz