]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/qcow2-refcount.c
Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20160913-1' into staging
[mirror_qemu.git] / block / qcow2-refcount.c
index 49b6ce6bfd0995b5533ebeb4abe54ac97b1492e9..cbfb3fe064df2d2ea8f4f41f2068dbc000e10f45 100644 (file)
@@ -615,9 +615,7 @@ void qcow2_process_discards(BlockDriverState *bs, int ret)
 
         /* Discard is optional, ignore the return value */
         if (ret >= 0) {
-            bdrv_discard(bs->file->bs,
-                         d->offset >> BDRV_SECTOR_BITS,
-                         d->bytes >> BDRV_SECTOR_BITS);
+            bdrv_pdiscard(bs->file->bs, d->offset, d->bytes);
         }
 
         g_free(d);