]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/cow.c
block: push recursive flushing up from drivers
[mirror_qemu.git] / block / cow.c
index bb5927c6aa123469a5842cde3cdbdbc2aed7e8d9..8d3c9f873cd5081371f58bc2a48ef0b88476d019 100644 (file)
@@ -318,11 +318,6 @@ exit:
     return ret;
 }
 
-static coroutine_fn int cow_co_flush(BlockDriverState *bs)
-{
-    return bdrv_co_flush(bs->file);
-}
-
 static QEMUOptionParameter cow_create_options[] = {
     {
         .name = BLOCK_OPT_SIZE,
@@ -348,7 +343,6 @@ static BlockDriver bdrv_cow = {
 
     .bdrv_read              = cow_co_read,
     .bdrv_write             = cow_co_write,
-    .bdrv_co_flush_to_disk  = cow_co_flush,
     .bdrv_co_is_allocated   = cow_co_is_allocated,
 
     .create_options = cow_create_options,