[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 28/31] block/file-posix: drop unallocated_blocks_are_zero
From: |
Max Reitz |
Subject: |
[PULL 28/31] block/file-posix: drop unallocated_blocks_are_zero |
Date: |
Mon, 6 Jul 2020 12:04:29 +0200 |
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
raw_co_block_status() in block/file-posix.c never returns 0, so
unallocated_blocks_are_zero is useless (it doesn't affect the only user
of the field: bdrv_co_block_status()). Drop it.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200528094405.145708-8-vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
block/file-posix.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/block/file-posix.c b/block/file-posix.c
index 3ab8f5a0fa..d86ea57769 100644
--- a/block/file-posix.c
+++ b/block/file-posix.c
@@ -2878,9 +2878,6 @@ static int coroutine_fn raw_co_pwrite_zeroes(
static int raw_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
{
- BDRVRawState *s = bs->opaque;
-
- bdi->unallocated_blocks_are_zero = s->discard_zeroes;
return 0;
}
--
2.26.2
- [PULL 18/31] block/core: add generic infrastructure for x-blockdev-amend qmp command, (continued)
- [PULL 18/31] block/core: add generic infrastructure for x-blockdev-amend qmp command, Max Reitz, 2020/07/06
- [PULL 20/31] block/qcow2: implement blockdev-amend, Max Reitz, 2020/07/06
- [PULL 22/31] qemu-img: convert: don't use unallocated_blocks_are_zero, Max Reitz, 2020/07/06
- [PULL 23/31] block: inline bdrv_unallocated_blocks_are_zero(), Max Reitz, 2020/07/06
- [PULL 21/31] iotests: add tests for blockdev-amend, Max Reitz, 2020/07/06
- [PULL 24/31] block/vdi: return ZERO block-status when appropriate, Max Reitz, 2020/07/06
- [PULL 26/31] block/crypto: drop unallocated_blocks_are_zero, Max Reitz, 2020/07/06
- [PULL 27/31] block/iscsi: drop unallocated_blocks_are_zero, Max Reitz, 2020/07/06
- [PULL 28/31] block/file-posix: drop unallocated_blocks_are_zero,
Max Reitz <=
- [PULL 29/31] block/vhdx: drop unallocated_blocks_are_zero, Max Reitz, 2020/07/06
- [PULL 30/31] block: drop unallocated_blocks_are_zero, Max Reitz, 2020/07/06
- [PULL 25/31] block/vpc: return ZERO block-status when appropriate, Max Reitz, 2020/07/06
- [PULL 31/31] qed: Simplify backing reads, Max Reitz, 2020/07/06
- Re: [PULL 00/31] Block patches, no-reply, 2020/07/06
- Re: [PULL 00/31] Block patches, Peter Maydell, 2020/07/07