Kevin Wolf 250196f19c qcow2: Reduce number of I/O requests
If the first part of a write request is allocated, but the second isn't
and it can be allocated so that the resulting area is contiguous, handle
it at once. This is a common case for sequential writes.

After this patch, alloc_cluster_offset() only checks if the clusters are
already allocated or how many new clusters can be allocated contigouosly.
The actual cluster allocation is split off into a new function
do_alloc_cluster_offset().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
2012-03-12 15:14:07 +01:00
..
2011-12-15 12:40:33 +01:00
2011-12-22 11:53:57 +01:00
2012-03-12 15:14:06 +01:00
2011-12-15 12:40:33 +01:00
2012-03-12 15:14:07 +01:00
2012-02-09 16:17:50 +01:00
2012-02-09 16:17:50 +01:00