[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH 4/7] qcow2: remove qcow2_cache_find
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH 4/7] qcow2: remove qcow2_cache_find_entry_to_replace() |
Date: |
Thu, 7 May 2015 11:17:22 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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.
>
> Signed-off-by: Alberto Garcia <address@hidden>
> ---
> block/qcow2-cache.c | 45 ++++++++++++++++-----------------------------
> 1 file changed, 16 insertions(+), 29 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
pgp2XtM2ZZ4z0.pgp
Description: PGP signature
- [Qemu-block] [PATCH v2 0/7] qcow2 L2/refcount cache improvements, Alberto Garcia, 2015/05/06
- [Qemu-block] [PATCH 2/7] qcow2: simplify qcow2_cache_put() and qcow2_cache_entry_mark_dirty(), Alberto Garcia, 2015/05/06
- [Qemu-block] [PATCH 7/7] qcow2: style fixes in qcow2-cache.c, Alberto Garcia, 2015/05/06
- [Qemu-block] [PATCH 4/7] qcow2: remove qcow2_cache_find_entry_to_replace(), Alberto Garcia, 2015/05/06
- [Qemu-block] [PATCH 5/7] qcow2: use a hash to look for entries in the L2 cache, Alberto Garcia, 2015/05/06
- [Qemu-block] [PATCH 6/7] qcow2: make qcow2_cache_put() a void function, Alberto Garcia, 2015/05/06
- [Qemu-block] [PATCH 3/7] qcow2: use an LRU algorithm to replace entries from the L2 cache, Alberto Garcia, 2015/05/06