From: Max Reitz Date: Mon, 1 Apr 2019 20:16:14 +0000 (+0200) Subject: block: Drop backing_bs() X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f1a7f18f07ef41b4d078621bd6e515165106d91f;p=qmiga%2Fqemu.git block: Drop backing_bs() We want to make it explicit where bs->backing is used, and we have done so. The old role of backing_bs() is now effectively taken by bdrv_cow_bs(). Signed-off-by: Max Reitz Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Andrey Shinkevich Reviewed-by: Kevin Wolf --- diff --git a/include/block/block_int.h b/include/block/block_int.h index 8205ccaa62..bb3d1c8a8c 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -1003,11 +1003,6 @@ typedef enum BlockMirrorBackingMode { MIRROR_LEAVE_BACKING_CHAIN, } BlockMirrorBackingMode; -static inline BlockDriverState *backing_bs(BlockDriverState *bs) -{ - return bs->backing ? bs->backing->bs : NULL; -} - /* Essential block drivers which must always be statically linked into qemu, and * which therefore can be accessed without using bdrv_find_format() */