]> Git Repo - qemu.git/commit - block/qcow2-cluster.c
qcow2: Use offset_into_cluster() and offset_to_l2_index()
authorAlberto Garcia <[email protected]>
Tue, 20 Jun 2017 13:01:36 +0000 (16:01 +0300)
committerKevin Wolf <[email protected]>
Mon, 26 Jun 2017 12:51:13 +0000 (14:51 +0200)
commit24990c5b959c3a24d76ccf96303c1f70556f1dd2
tree70e5a8a385159b0e0c82967222c2b22a44ae22d7
parentee22a9d86921310672aa8775489217f3e2f5e1c6
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 <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/qcow2-cluster.c
block/qcow2.c
This page took 0.024729 seconds and 4 git commands to generate.