commit | baf07d60f5c5d5d0f0c9e844cde75691f1ceb3d1 | [log] [tgz] |
---|---|---|
author | Alberto Garcia <berto@igalia.com> | Mon May 11 15:54:54 2015 +0300 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri May 22 17:08:01 2015 +0200 |
tree | 795df88d7f949ffd0ccc8f93463383d3a3e6cf6f | |
parent | 72e80b89015bab196f0f0e83b12b0eee75fa0574 [diff] |
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>