static void ide_flush_cache(IDEState *s)

{

    if (s->blk == NULL) {

        ide_flush_cb(s, 0);

        return;

    }



    s->status |= BUSY_STAT;

    ide_set_retry(s);

    block_acct_start(blk_get_stats(s->blk), &s->acct, 0, BLOCK_ACCT_FLUSH);

    s->pio_aiocb = blk_aio_flush(s->blk, ide_flush_cb, s);

}

static void ide_flush_cache(IDEState *s)

{

    if (s->blk == NULL) {

        ide_flush_cb(s, 0);

        return;

    }



    s->status |= BUSY_STAT;

    ide_set_retry(s);

    block_acct_start(blk_get_stats(s->blk), &s->acct, 0, BLOCK_ACCT_FLUSH);

    s->pio_aiocb = blk_aio_flush(s->blk, ide_flush_cb, s);

}

    s->pio_aiocb = blk_aio_flush(s->blk, ide_flush_cb, s);
static void FUNC_0(IDEState *VAR_0)

{

    if (VAR_0->blk == NULL) {

        ide_flush_cb(VAR_0, 0);

        return;

    }



    VAR_0->status |= BUSY_STAT;

    ide_set_retry(VAR_0);

    block_acct_start(blk_get_stats(VAR_0->blk), &VAR_0->acct, 0, BLOCK_ACCT_FLUSH);

    VAR_0->pio_aiocb = blk_aio_flush(VAR_0->blk, ide_flush_cb, VAR_0);

}

static void FUNC_0(IDEState *VAR_0)
{ if (VAR_0->blk == NULL) { ide_flush_cb(VAR_0, 0); return; } VAR_0->status |= BUSY_STAT; ide_set_retry(VAR_0); block_acct_start(blk_get_stats(VAR_0->blk), &VAR_0->acct, 0, BLOCK_ACCT_FLUSH); VAR_0->pio_aiocb = blk_aio_flush(VAR_0->blk, ide_flush_cb, VAR_0); }