diff options
| author | Alberto Garcia | 2015-05-11 14:54:54 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2015-05-22 17:08:01 +0200 |
| commit | baf07d60f5c5d5d0f0c9e844cde75691f1ceb3d1 (patch) | |
| tree | 795df88d7f949ffd0ccc8f93463383d3a3e6cf6f /include/exec/exec-all.h | |
| parent | qcow2: use one single memory block for the L2/refcount cache tables (diff) | |
| download | qemu-baf07d60f5c5d5d0f0c9e844cde75691f1ceb3d1.tar.gz qemu-baf07d60f5c5d5d0f0c9e844cde75691f1ceb3d1.tar.xz qemu-baf07d60f5c5d5d0f0c9e844cde75691f1ceb3d1.zip | |
qcow2: simplify qcow2_cache_put() and qcow2_cache_entry_mark_dirty()
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 <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 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions
