block/iscsi: drop unallocated_blocks_are_zero
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 28 May 2020 09:44:01 +0000 (12:44 +0300)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jul 2020 08:34:14 +0000 (10:34 +0200)
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 <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200528094405.145708-7-vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/iscsi.c

index a8b76979d8be483e1b483b47167f22861aaa3e5d..767e3e75fdb35cb1036a352751b06ad5f9a9a756 100644 (file)
@@ -2163,7 +2163,6 @@ static int coroutine_fn iscsi_co_truncate(BlockDriverState *bs, int64_t offset,
 static int iscsi_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
 {
     IscsiLun *iscsilun = bs->opaque;
-    bdi->unallocated_blocks_are_zero = iscsilun->lbprz;
     bdi->cluster_size = iscsilun->cluster_size;
     return 0;
 }