Skip to content

Commit ac91856

Browse files
Vladimir Sementsov-OgievskiyXanClic
authored andcommitted
block/file-posix: drop unallocated_blocks_are_zero
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 <[email protected]> Reviewed-by: Eric Blake <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Reitz <[email protected]>
1 parent 32d293c commit ac91856

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

block/file-posix.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2878,9 +2878,6 @@ static int coroutine_fn raw_co_pwrite_zeroes(
28782878

28792879
static int raw_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
28802880
{
2881-
BDRVRawState *s = bs->opaque;
2882-
2883-
bdi->unallocated_blocks_are_zero = s->discard_zeroes;
28842881
return 0;
28852882
}
28862883

0 commit comments

Comments
 (0)