diff options
| author | Denis V. Lunev <den@openvz.org> | 2016-07-14 16:33:26 +0300 |
|---|---|---|
| committer | Jeff Cody <jcody@redhat.com> | 2016-07-19 16:54:46 -0400 |
| commit | 2f0342efdbb0a3c5b5a6a4f4831cbe90c445510b (patch) | |
| tree | 0faac84059f301d83c6322fc595defffa6ab16c2 | |
| parent | c0b363ad43b00d77c81813db20eec45923973549 (diff) | |
| download | focaccia-qemu-2f0342efdbb0a3c5b5a6a4f4831cbe90c445510b.tar.gz focaccia-qemu-2f0342efdbb0a3c5b5a6a4f4831cbe90c445510b.zip | |
block: remove extra condition in bdrv_can_write_zeroes_with_unmap
All .bdrv_co_write_zeroes callbacks nowadays work perfectly even with backing store attached. If future new callbacks would be unable to do that - they have a chance to block this in bdrv_get_info(). Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 1468503209-19498-6-git-send-email-den@openvz.org CC: Stefan Hajnoczi <stefanha@redhat.com> CC: Kevin Wolf <kwolf@redhat.com> CC: Max Reitz <mreitz@redhat.com> CC: Jeff Cody <jcody@redhat.com> Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to '')
| -rw-r--r-- | block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c index d2dac3dce9..30d64e6ca5 100644 --- a/block.c +++ b/block.c @@ -2837,7 +2837,7 @@ bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs) { BlockDriverInfo bdi; - if (bs->backing || !(bs->open_flags & BDRV_O_UNMAP)) { + if (!(bs->open_flags & BDRV_O_UNMAP)) { return false; } |