static inline void flash_sync_area(Flash *s, int64_t off, int64_t len)

{

    QEMUIOVector *iov = g_new(QEMUIOVector, 1);



    if (!s->blk || blk_is_read_only(s->blk)) {

        return;

    }



    assert(!(len % BDRV_SECTOR_SIZE));

    qemu_iovec_init(iov, 1);

    qemu_iovec_add(iov, s->storage + off, len);

    blk_aio_pwritev(s->blk, off, iov, 0, blk_sync_complete, iov);

}

static inline void flash_sync_area(Flash *s, int64_t off, int64_t len)

{

    QEMUIOVector *iov = g_new(QEMUIOVector, 1);



    if (!s->blk || blk_is_read_only(s->blk)) {

        return;

    }



    assert(!(len % BDRV_SECTOR_SIZE));

    qemu_iovec_init(iov, 1);

    qemu_iovec_add(iov, s->storage + off, len);

    blk_aio_pwritev(s->blk, off, iov, 0, blk_sync_complete, iov);

}

    QEMUIOVector *iov = g_new(QEMUIOVector, 1);     QEMUIOVector *iov = g_new(QEMUIOVector, 1);
static inline void FUNC_0(Flash *VAR_0, int64_t VAR_1, int64_t VAR_2)

{

    QEMUIOVector *iov = g_new(QEMUIOVector, 1);



    if (!VAR_0->blk || blk_is_read_only(VAR_0->blk)) {

        return;

    }



    assert(!(VAR_2 % BDRV_SECTOR_SIZE));

    qemu_iovec_init(iov, 1);

    qemu_iovec_add(iov, VAR_0->storage + VAR_1, VAR_2);

    blk_aio_pwritev(VAR_0->blk, VAR_1, iov, 0, blk_sync_complete, iov);

}

static inline void FUNC_0(Flash *VAR_0, int64_t VAR_1, int64_t VAR_2)
{ QEMUIOVector *iov = g_new(QEMUIOVector, 1); if (!VAR_0->blk || blk_is_read_only(VAR_0->blk)) { return; } assert(!(VAR_2 % BDRV_SECTOR_SIZE)); qemu_iovec_init(iov, 1); qemu_iovec_add(iov, VAR_0->storage + VAR_1, VAR_2); blk_aio_pwritev(VAR_0->blk, VAR_1, iov, 0, blk_sync_complete, iov); }