bdrv_acct_done(BlockDriverState *bs, BlockAcctCookie *cookie)

{

    assert(cookie->type < BDRV_MAX_IOTYPE);



    bs->stats.nr_bytes[cookie->type] += cookie->bytes;

    bs->stats.nr_ops[cookie->type]++;

    bs->stats.total_time_ns[cookie->type] += get_clock() -

                                             cookie->start_time_ns;

}

bdrv_acct_done(BlockDriverState *bs, BlockAcctCookie *cookie)

{

    assert(cookie->type < BDRV_MAX_IOTYPE);



    bs->stats.nr_bytes[cookie->type] += cookie->bytes;

    bs->stats.nr_ops[cookie->type]++;

    bs->stats.total_time_ns[cookie->type] += get_clock() -

                                             cookie->start_time_ns;

}

bdrv_acct_done(BlockDriverState *bs, BlockAcctCookie *cookie)     assert(cookie->type < BDRV_MAX_IOTYPE);     bs->stats.nr_bytes[cookie->type] += cookie->bytes;     bs->stats.nr_ops[cookie->type]++;     bs->stats.total_time_ns[cookie->type] += get_clock() -                                              cookie->start_time_ns;
FUNC_0(BlockDriverState *VAR_0, BlockAcctCookie *VAR_1)

{

    assert(VAR_1->type < BDRV_MAX_IOTYPE);



    VAR_0->stats.nr_bytes[VAR_1->type] += VAR_1->bytes;

    VAR_0->stats.nr_ops[VAR_1->type]++;

    VAR_0->stats.total_time_ns[VAR_1->type] += get_clock() -

                                             VAR_1->start_time_ns;

}

FUNC_0(BlockDriverState *VAR_0, BlockAcctCookie *VAR_1)
{ assert(VAR_1->type < BDRV_MAX_IOTYPE); VAR_0->stats.nr_bytes[VAR_1->type] += VAR_1->bytes; VAR_0->stats.nr_ops[VAR_1->type]++; VAR_0->stats.total_time_ns[VAR_1->type] += get_clock() -
VAR_1->start_time_ns; }