l2_allocate: Write complete sectors
commit6583e3c7e811b13530b7b69fffbe29a7a28cd1f7
authorKevin Wolf <kwolf@redhat.com>
Tue, 16 Jun 2009 09:31:28 +0000 (16 11:31 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Jun 2009 20:18:36 +0000 (16 15:18 -0500)
tree3984780c10aebda3251b754e7b8d8b4ebef39162
parented6ccf0f518aea8fab18815c8b18b2819524e4c2
l2_allocate: Write complete sectors

When modifying the L1 table, l2_allocate() needs to write complete sectors
instead of single entries. The L1 table is already in memory, reading it from
disk in the block layer to align the request is wasted performance.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/qcow2-cluster.c