diff options
author | Fam Zheng <famz@redhat.com> | 2016-05-11 10:45:34 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-12 15:22:09 +0200 |
commit | c9e9e9c66cee9932fb28a41a4659aa421a7a3f78 (patch) | |
tree | e31a2def88b58dda7b215dd535ee1d506c5a7f00 /block/qcow2.c | |
parent | 0d1c5c91607d1c55a8f5db39c57c6e5c76e21131 (diff) |
block: Drop superfluous invalidating bs->file from drivers
Now they are invalidated by the block layer, so it's not necessary to
do this in block drivers' implementations of .bdrv_invalidate_cache.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.c')
-rw-r--r-- | block/qcow2.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/block/qcow2.c b/block/qcow2.c index 555627a35b..62febfc386 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1757,13 +1757,6 @@ static void qcow2_invalidate_cache(BlockDriverState *bs, Error **errp) qcow2_close(bs); - bdrv_invalidate_cache(bs->file->bs, &local_err); - if (local_err) { - error_propagate(errp, local_err); - bs->drv = NULL; - return; - } - memset(s, 0, sizeof(BDRVQcow2State)); options = qdict_clone_shallow(bs->options); |