On 06.05.2015 15:39, 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 <be...@igalia.com> --- block/qcow2-cache.c | 45 ++++++++++++++++----------------------------- 1 file changed, 16 insertions(+), 29 deletions(-)
Reviewed-by: Max Reitz <mre...@redhat.com>