block.c (6987307ca30aead67e8545934186c92f942710f6) block.c (f8a83245d9ec685bc6aa6173d6765fe03e20688f)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 1617 unchanged lines hidden (view full) ---

1626
1627static void multiwrite_user_cb(MultiwriteCB *mcb)
1628{
1629 int i;
1630
1631 for (i = 0; i < mcb->num_callbacks; i++) {
1632 mcb->callbacks[i].cb(mcb->callbacks[i].opaque, mcb->error);
1633 qemu_free(mcb->callbacks[i].free_qiov);
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 1617 unchanged lines hidden (view full) ---

1626
1627static void multiwrite_user_cb(MultiwriteCB *mcb)
1628{
1629 int i;
1630
1631 for (i = 0; i < mcb->num_callbacks; i++) {
1632 mcb->callbacks[i].cb(mcb->callbacks[i].opaque, mcb->error);
1633 qemu_free(mcb->callbacks[i].free_qiov);
1634 qemu_free(mcb->callbacks[i].free_buf);
1634 qemu_vfree(mcb->callbacks[i].free_buf);
1635 }
1636}
1637
1638static void multiwrite_cb(void *opaque, int ret)
1639{
1640 MultiwriteCB *mcb = opaque;
1641
1642 if (ret < 0) {

--- 529 unchanged lines hidden ---
1635 }
1636}
1637
1638static void multiwrite_cb(void *opaque, int ret)
1639{
1640 MultiwriteCB *mcb = opaque;
1641
1642 if (ret < 0) {

--- 529 unchanged lines hidden ---