• K
    qcow2: Reduce number of I/O requests · 250196f1
    Kevin Wolf 提交于
    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: NKevin Wolf <kwolf@redhat.com>
    Reviewed-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    250196f1
qcow2-cluster.c 31.6 KB