Re: [Qemu-devel] [PATCH] block: Avoid unchecked casts for AIOCBs
On Wed, May 05, 2010 at 11:51:58AM +0200, Kevin Wolf wrote: > Use container_of for one direction and &acb->common for the other one. > > Signed-off-by: Kevin Wolf Looks good, Reviewed-by: Christoph Hellwig
[Qemu-devel] [PATCH] block: Avoid unchecked casts for AIOCBs
Use container_of for one direction and &acb->common for the other one. Signed-off-by: Kevin Wolf --- block.c |3 ++- block/blkdebug.c |4 ++-- block/qcow.c |2 +- block/qcow2.c|2 +- block/vdi.c |2 +- 5 files changed, 7 insertions(+), 6 deletions(-) di