diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-04-07 17:33:01 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-04-11 16:40:54 +0200 |
commit | e5203a3b5db1fb1328f104a4863284198b551ce0 (patch) | |
tree | bab35261ea24e9f8d0cddc340b875ffbaac39bc9 /include/block/block-io.h | |
parent | 2c5451ca523fc2b757e1e5b4e0b9fc84dbd58f97 (diff) |
block-backend: inline bdrv_co_get_geometry
bdrv_co_get_geometry is only used in blk_co_get_geometry. Inline it in
there, to reduce the number of wrappers for bs->total_sectors.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20230407153303.391121-7-pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block/block-io.h')
-rw-r--r-- | include/block/block-io.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/block/block-io.h b/include/block/block-io.h index dbc034b728..9e2248a295 100644 --- a/include/block/block-io.h +++ b/include/block/block-io.h @@ -90,9 +90,6 @@ int64_t co_wrapper bdrv_get_allocated_file_size(BlockDriverState *bs); BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts, BlockDriverState *in_bs, Error **errp); -void coroutine_fn GRAPH_RDLOCK -bdrv_co_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr); - int coroutine_fn GRAPH_RDLOCK bdrv_co_delete_file(BlockDriverState *bs, Error **errp); |