summary refs log tree commit diff stats
path: root/block/commit.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2020-05-13 13:05:44 +0200
committerKevin Wolf <kwolf@redhat.com>2020-05-18 19:05:25 +0200
commite5d8a4068526d3fb692e3402485edd03bc11c084 (patch)
treee1ec36109c0c771cae4e98be562724b7e1be21c3 /block/commit.c
parent1f38f04eacd4c3b9409dcb411525f203cce168a1 (diff)
downloadfocaccia-qemu-e5d8a4068526d3fb692e3402485edd03bc11c084.tar.gz
focaccia-qemu-e5d8a4068526d3fb692e3402485edd03bc11c084.zip
block: Drop @child_class from bdrv_child_perm()
Implementations should decide the necessary permissions based on @role.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200513110544.176672-35-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/commit.c')
-rw-r--r--block/commit.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/commit.c b/block/commit.c
index 6af1c808bc..7732d02dfe 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -223,7 +223,6 @@ static void bdrv_commit_top_refresh_filename(BlockDriverState *bs)
 }
 
 static void bdrv_commit_top_child_perm(BlockDriverState *bs, BdrvChild *c,
-                                       const BdrvChildClass *child_class,
                                        BdrvChildRole role,
                                        BlockReopenQueue *reopen_queue,
                                        uint64_t perm, uint64_t shared,