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