aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorAlberto Faria <afaria@redhat.com>2022-07-05 17:15:20 +0100
committerHanna Reitz <hreitz@redhat.com>2022-07-12 12:14:56 +0200
commit1c95dc914a0218e58dc8d857b736b966a721d96d (patch)
treea41d24d9d4eab5d32f6dd684dfabb784b5ec1158 /block
parent2c9715fa28042ce84215dfd6b3bf35af90624e14 (diff)
downloadqemu-1c95dc914a0218e58dc8d857b736b966a721d96d.zip
qemu-1c95dc914a0218e58dc8d857b736b966a721d96d.tar.gz
qemu-1c95dc914a0218e58dc8d857b736b966a721d96d.tar.bz2
block: Implement blk_pwrite_zeroes() using generated_co_wrapper
Signed-off-by: Alberto Faria <afaria@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220705161527.1054072-13-afaria@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/block-backend.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/block/block-backend.c b/block/block-backend.c
index f07a76a..85661d1 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -1411,14 +1411,6 @@ typedef struct BlkRwCo {
BdrvRequestFlags flags;
} BlkRwCo;
-int blk_pwrite_zeroes(BlockBackend *blk, int64_t offset,
- int64_t bytes, BdrvRequestFlags flags)
-{
- IO_OR_GS_CODE();
- return blk_pwritev_part(blk, offset, bytes, NULL, 0,
- flags | BDRV_REQ_ZERO_WRITE);
-}
-
int blk_make_zero(BlockBackend *blk, BdrvRequestFlags flags)
{
GLOBAL_STATE_CODE();