block: Drop redundant bdrv_refresh_limits
The above bdrv_set_backing_hd already does this. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
826b6ca0b0
commit
ce782938b8
3
block.c
3
block.c
@ -1182,9 +1182,6 @@ int bdrv_open_backing_file(BlockDriverState *bs, QDict *options, Error **errp)
|
|||||||
}
|
}
|
||||||
bdrv_set_backing_hd(bs, backing_hd);
|
bdrv_set_backing_hd(bs, backing_hd);
|
||||||
|
|
||||||
/* Recalculate the BlockLimits with the backing file */
|
|
||||||
bdrv_refresh_limits(bs);
|
|
||||||
|
|
||||||
free_exit:
|
free_exit:
|
||||||
g_free(backing_filename);
|
g_free(backing_filename);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user