qcow2: remove qcow2_cache_find_entry_to_replace()
commitfdfbca82a0874916007ca76323cd35f2af8a2ef3
authorAlberto Garcia <berto@igalia.com>
Mon, 11 May 2015 12:54:56 +0000 (11 15:54 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 May 2015 15:08:01 +0000 (22 17:08 +0200)
tree45feadf98a360346bfc97582a426b1408537f9a1
parent2693310eccccf8351678ddd6f3b050163e51dba0
qcow2: remove qcow2_cache_find_entry_to_replace()

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 <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cache.c