commit | 24990c5b959c3a24d76ccf96303c1f70556f1dd2 | [log] [tgz] |
---|---|---|
author | Alberto Garcia <berto@igalia.com> | Tue Jun 20 16:01:36 2017 +0300 |
committer | Kevin Wolf <kwolf@redhat.com> | Mon Jun 26 14:51:13 2017 +0200 |
tree | 70e5a8a385159b0e0c82967222c2b22a44ae22d7 | |
parent | ee22a9d86921310672aa8775489217f3e2f5e1c6 [diff] |
qcow2: Use offset_into_cluster() and offset_to_l2_index() We already have functions for doing these calculations, so let's use them instead of doing everything by hand. This makes the code a bit more readable. Signed-off-by: Alberto Garcia <berto@igalia.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>