block-backend: inline bdrv_co_get_geometry
commite5203a3b5db1fb1328f104a4863284198b551ce0
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Apr 2023 15:33:01 +0000 (7 17:33 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 11 Apr 2023 14:40:54 +0000 (11 16:40 +0200)
treebab35261ea24e9f8d0cddc340b875ffbaac39bc9
parent2c5451ca523fc2b757e1e5b4e0b9fc84dbd58f97
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>
block.c
block/block-backend.c
include/block/block-io.h