static int write_refcount_block(BlockDriverState *bs)

{

    BDRVQcowState *s = bs->opaque;

    size_t size = s->cluster_size;



    if (s->refcount_block_cache_offset == 0) {

        return 0;

    }



    BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_UPDATE);

    if (bdrv_pwrite(bs->file, s->refcount_block_cache_offset,

            s->refcount_block_cache, size) != size)

    {

        return -EIO;

    }



    return 0;

}

static int write_refcount_block(BlockDriverState *bs)

{

    BDRVQcowState *s = bs->opaque;

    size_t size = s->cluster_size;



    if (s->refcount_block_cache_offset == 0) {

        return 0;

    }



    BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_UPDATE);

    if (bdrv_pwrite(bs->file, s->refcount_block_cache_offset,

            s->refcount_block_cache, size) != size)

    {

        return -EIO;

    }



    return 0;

}

    if (bdrv_pwrite(bs->file, s->refcount_block_cache_offset,             s->refcount_block_cache, size) != size)
static int FUNC_0(BlockDriverState *VAR_0)

{

    BDRVQcowState *s = VAR_0->opaque;

    size_t size = s->cluster_size;



    if (s->refcount_block_cache_offset == 0) {

        return 0;

    }



    BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_UPDATE);

    if (bdrv_pwrite(VAR_0->file, s->refcount_block_cache_offset,

            s->refcount_block_cache, size) != size)

    {

        return -EIO;

    }



    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0)
{ BDRVQcowState *s = VAR_0->opaque; size_t size = s->cluster_size; if (s->refcount_block_cache_offset == 0) { return 0; } BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_UPDATE); if (bdrv_pwrite(VAR_0->file, s->refcount_block_cache_offset,
s->refcount_block_cache, size) != size)
{ return -EIO; } return 0; }