From 72aef7318f54f0ec8c84c2bf2bb8edc5702d7dd0 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Sun, 12 Sep 2010 23:42:56 +0200 Subject: use qemu_blockalign consistently Use qemu_blockalign for all allocations in the block layer. This allows increasing the required alignment, which is need to support O_DIRECT on devices with large block sizes. Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- posix-aio-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'posix-aio-compat.c') diff --git a/posix-aio-compat.c b/posix-aio-compat.c index 10f1f037fb..842f1a24aa 100644 --- a/posix-aio-compat.c +++ b/posix-aio-compat.c @@ -270,7 +270,7 @@ static ssize_t handle_aiocb_rw(struct qemu_paiocb *aiocb) * Ok, we have to do it the hard way, copy all segments into * a single aligned buffer. */ - buf = qemu_memalign(512, aiocb->aio_nbytes); + buf = qemu_blockalign(aiocb->common.bs, aiocb->aio_nbytes); if (aiocb->aio_type & QEMU_AIO_WRITE) { char *p = buf; int i; -- cgit v1.2.3