qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/3] block: Use g_new() & friends more


From: Markus Armbruster
Subject: [Qemu-devel] [PATCH 0/3] block: Use g_new() & friends more
Date: Fri, 30 May 2014 18:30:35 +0200

This series is on top of Kevin's "block: Handle failure for
potentially large allocations".

PATCH 1+2 convert some allocations.  While preparing them, I stumbled
over some useless casts, which led to PATCH 3.

I posted a tree-wide version of PATCH 1 some time ago, and was told to
split it up.  This is the block part, redone from scratch.  Can't say
when (or even whether) I can do more parts.

Markus Armbruster (3):
  block: Use g_new() & friends where that makes obvious sense
  block: Use g_new() & friends to avoid multiplying sizes
  block: Drop some superfluous casts from void *

 block-migration.c        |  6 +++---
 block.c                  | 14 +++++++-------
 block/bochs.c            |  2 +-
 block/gluster.c          |  8 ++++----
 block/iscsi.c            |  2 +-
 block/nfs.c              |  2 +-
 block/parallels.c        |  2 +-
 block/qcow.c             |  2 +-
 block/qcow2-cache.c      |  2 +-
 block/qcow2-cluster.c    |  2 +-
 block/qcow2-refcount.c   |  8 ++++----
 block/qcow2-snapshot.c   |  8 ++++----
 block/qed-check.c        |  3 +--
 block/raw-posix.c        |  2 +-
 block/rbd.c              |  6 +++---
 block/sheepdog.c         |  8 ++++----
 block/vdi.c              |  2 +-
 block/vhdx-log.c         |  2 +-
 block/vhdx.c             |  4 ++--
 block/vmdk.c             |  7 +++----
 block/vvfat.c            | 10 +++++-----
 blockdev-nbd.c           |  2 +-
 blockdev.c               |  2 +-
 hw/block/dataplane/ioq.c |  4 ++--
 hw/block/nvme.c          |  8 ++++----
 hw/ide/ahci.c            |  2 +-
 hw/ide/microdrive.c      |  2 +-
 qemu-img.c               |  2 +-
 qemu-io.c                |  2 +-
 29 files changed, 62 insertions(+), 64 deletions(-)

-- 
1.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]