[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/8] block/file-posix: drop unallocated_blocks_are_zero
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH 5/8] block/file-posix: drop unallocated_blocks_are_zero |
Date: |
Wed, 6 May 2020 12:25:10 +0300 |
raw_co_block_status() in block/file-posix.c never returns 0, so
unallocated_blocks_are_zero is useless. Drop it.
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
block/file-posix.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/block/file-posix.c b/block/file-posix.c
index 05e094be29..5c01735108 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.21.0
- Re: [PATCH 1/8] block/vdi: return ZERO block-status when appropriate, (continued)
- [PATCH 2/8] block/vpc: return ZERO block-status when appropriate, Vladimir Sementsov-Ogievskiy, 2020/05/06
- [PATCH 3/8] block/crypto: drop unallocated_blocks_are_zero, Vladimir Sementsov-Ogievskiy, 2020/05/06
- [PATCH 4/8] block/iscsi: drop unallocated_blocks_are_zero, Vladimir Sementsov-Ogievskiy, 2020/05/06
- [PATCH 5/8] block/file-posix: drop unallocated_blocks_are_zero,
Vladimir Sementsov-Ogievskiy <=
- [PATCH 6/8] block/vhdx: drop unallocated_blocks_are_zero, Vladimir Sementsov-Ogievskiy, 2020/05/06
- [PATCH 7/8] qemu-img: convert: don't use unallocated_blocks_are_zero, Vladimir Sementsov-Ogievskiy, 2020/05/06
- [PATCH 8/8] block: drop unallocated_blocks_are_zero, Vladimir Sementsov-Ogievskiy, 2020/05/06