mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
block: Remove unused blk_op_is_blocked()
Commit fc4e394b28
removed the last caller of blk_op_is_blocked(). Remove
the now unused function.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250206165331.379033-1-kwolf@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
825b96dbce
commit
000a41b69c
2 changed files with 0 additions and 13 deletions
|
@ -2357,18 +2357,6 @@ void *blk_blockalign(BlockBackend *blk, size_t size)
|
||||||
return qemu_blockalign(blk ? blk_bs(blk) : NULL, size);
|
return qemu_blockalign(blk ? blk_bs(blk) : NULL, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool blk_op_is_blocked(BlockBackend *blk, BlockOpType op, Error **errp)
|
|
||||||
{
|
|
||||||
BlockDriverState *bs = blk_bs(blk);
|
|
||||||
GLOBAL_STATE_CODE();
|
|
||||||
GRAPH_RDLOCK_GUARD_MAINLOOP();
|
|
||||||
|
|
||||||
if (!bs) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return bdrv_op_is_blocked(bs, op, errp);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return BB's current AioContext. Note that this context may change
|
* Return BB's current AioContext. Note that this context may change
|
||||||
|
|
|
@ -86,7 +86,6 @@ bool blk_supports_write_perm(BlockBackend *blk);
|
||||||
bool blk_is_sg(BlockBackend *blk);
|
bool blk_is_sg(BlockBackend *blk);
|
||||||
void blk_set_enable_write_cache(BlockBackend *blk, bool wce);
|
void blk_set_enable_write_cache(BlockBackend *blk, bool wce);
|
||||||
int blk_get_flags(BlockBackend *blk);
|
int blk_get_flags(BlockBackend *blk);
|
||||||
bool blk_op_is_blocked(BlockBackend *blk, BlockOpType op, Error **errp);
|
|
||||||
int blk_set_aio_context(BlockBackend *blk, AioContext *new_context,
|
int blk_set_aio_context(BlockBackend *blk, AioContext *new_context,
|
||||||
Error **errp);
|
Error **errp);
|
||||||
void blk_add_aio_context_notifier(BlockBackend *blk,
|
void blk_add_aio_context_notifier(BlockBackend *blk,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue