diff options
| author | Alberto Garcia | 2015-05-11 14:54:56 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2015-05-22 17:08:01 +0200 |
| commit | fdfbca82a0874916007ca76323cd35f2af8a2ef3 (patch) | |
| tree | 45feadf98a360346bfc97582a426b1408537f9a1 /device-hotplug.c | |
| parent | qcow2: use an LRU algorithm to replace entries from the L2 cache (diff) | |
| download | qemu-fdfbca82a0874916007ca76323cd35f2af8a2ef3.tar.gz qemu-fdfbca82a0874916007ca76323cd35f2af8a2ef3.tar.xz qemu-fdfbca82a0874916007ca76323cd35f2af8a2ef3.zip | |
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>
Diffstat (limited to 'device-hotplug.c')
0 files changed, 0 insertions, 0 deletions
