summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-04-01 22:16:14 +0200
committerKevin Wolf <kwolf@redhat.com>2020-09-07 12:31:31 +0200
commitf1a7f18f07ef41b4d078621bd6e515165106d91f (patch)
tree31c51338a836eaa373c08192a253e75f250b0203
parent4a2061e66d1fb16c14ca65b2c702363361adeb7b (diff)
downloadfocaccia-qemu-f1a7f18f07ef41b4d078621bd6e515165106d91f.tar.gz
focaccia-qemu-f1a7f18f07ef41b4d078621bd6e515165106d91f.zip
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 <mreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--include/block/block_int.h5
1 files changed, 0 insertions, 5 deletions
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() */