]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-io-cmds.c
virtio: decrement vq->inuse in virtqueue_discard()
[mirror_qemu.git] / qemu-io-cmds.c
index 6e29edb1fd88b9c72a1939fbc2d2af10690a15f0..25954f5634470f64e2d6bfbc0b5d197d523e6629 100644 (file)
@@ -1696,8 +1696,7 @@ static int discard_f(BlockBackend *blk, int argc, char **argv)
     }
 
     gettimeofday(&t1, NULL);
-    ret = blk_discard(blk, offset >> BDRV_SECTOR_BITS,
-                      count >> BDRV_SECTOR_BITS);
+    ret = blk_pdiscard(blk, offset, count);
     gettimeofday(&t2, NULL);
 
     if (ret < 0) {