diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-06-01 17:13:47 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-06-16 15:19:56 +0200 |
commit | c9d20029f43a08c6362a655c2c5272612186a004 (patch) | |
tree | d876fa2f5d26d9643c6b054255b79dcfe4cd8f6b /block.c | |
parent | 734a77584ae13d36113a7a7cd8b54beb49a8a48e (diff) | |
download | qemu-c9d20029f43a08c6362a655c2c5272612186a004.zip qemu-c9d20029f43a08c6362a655c2c5272612186a004.tar.gz qemu-c9d20029f43a08c6362a655c2c5272612186a004.tar.bz2 |
block: Remove bs->zero_beyond_eof
It is always true for open images now.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -938,7 +938,6 @@ static int bdrv_open_common(BlockDriverState *bs, BdrvChild *file, } bs->request_alignment = drv->bdrv_co_preadv ? 1 : 512; - bs->zero_beyond_eof = true; bs->read_only = !(bs->open_flags & BDRV_O_RDWR); if (use_bdrv_whitelist && !bdrv_is_whitelisted(drv, bs->read_only)) { @@ -2192,7 +2191,6 @@ static void bdrv_close(BlockDriverState *bs) bs->encrypted = 0; bs->valid_key = 0; bs->sg = 0; - bs->zero_beyond_eof = false; QDECREF(bs->options); QDECREF(bs->explicit_options); bs->options = NULL; |