Skip to content

Commit 32d293c

Browse files
Vladimir Sementsov-OgievskiyXanClic
authored andcommitted
block/iscsi: drop unallocated_blocks_are_zero
We set bdi->unallocated_blocks_are_zero = iscsilun->lbprz, but iscsi_co_block_status doesn't return 0 in case of iscsilun->lbprz, it returns ZERO when appropriate. So actually unallocated_blocks_are_zero is useless (it doesn't affect the only user of the field: bdrv_co_block_status()). Drop it now. Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> Reviewed-by: Eric Blake <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Reitz <[email protected]>
1 parent 7403639 commit 32d293c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

block/iscsi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,6 @@ static int coroutine_fn iscsi_co_truncate(BlockDriverState *bs, int64_t offset,
21632163
static int iscsi_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
21642164
{
21652165
IscsiLun *iscsilun = bs->opaque;
2166-
bdi->unallocated_blocks_are_zero = iscsilun->lbprz;
21672166
bdi->cluster_size = iscsilun->cluster_size;
21682167
return 0;
21692168
}

0 commit comments

Comments
 (0)