static void blk_delete(BlockBackend *blk)

{

    assert(!blk->refcnt);

    assert(!blk->name);

    assert(!blk->dev);




    if (blk->root) {

        blk_remove_bs(blk);


    assert(QLIST_EMPTY(&blk->remove_bs_notifiers.notifiers));

    assert(QLIST_EMPTY(&blk->insert_bs_notifiers.notifiers));

    QTAILQ_REMOVE(&block_backends, blk, link);

    drive_info_del(blk->legacy_dinfo);

    block_acct_cleanup(&blk->stats);

    g_free(blk);

static void blk_delete(BlockBackend *blk)

{

    assert(!blk->refcnt);

    assert(!blk->name);

    assert(!blk->dev);




    if (blk->root) {

        blk_remove_bs(blk);


    assert(QLIST_EMPTY(&blk->remove_bs_notifiers.notifiers));

    assert(QLIST_EMPTY(&blk->insert_bs_notifiers.notifiers));

    QTAILQ_REMOVE(&block_backends, blk, link);

    drive_info_del(blk->legacy_dinfo);

    block_acct_cleanup(&blk->stats);

    g_free(blk);

static void FUNC_0(BlockBackend *VAR_0)

{

    assert(!VAR_0->refcnt);

    assert(!VAR_0->name);

    assert(!VAR_0->dev);




    if (VAR_0->root) {

        blk_remove_bs(VAR_0);


    assert(QLIST_EMPTY(&VAR_0->remove_bs_notifiers.notifiers));

    assert(QLIST_EMPTY(&VAR_0->insert_bs_notifiers.notifiers));

    QTAILQ_REMOVE(&block_backends, VAR_0, link);

    drive_info_del(VAR_0->legacy_dinfo);

    block_acct_cleanup(&VAR_0->stats);

    g_free(VAR_0);

static void FUNC_0(BlockBackend *VAR_0)
{ assert(!VAR_0->refcnt); assert(!VAR_0->name); assert(!VAR_0->dev); if (VAR_0->root) { blk_remove_bs(VAR_0); assert(QLIST_EMPTY(&VAR_0->remove_bs_notifiers.notifiers)); assert(QLIST_EMPTY(&VAR_0->insert_bs_notifiers.notifiers)); QTAILQ_REMOVE(&block_backends, VAR_0, link); drive_info_del(VAR_0->legacy_dinfo); block_acct_cleanup(&VAR_0->stats); g_free(VAR_0);