]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commitdiff
Move raw_aio_flush to where it gets compiled.
authorIan Jackson <iwj@mariner.uk.xensource.com>
Tue, 1 Apr 2008 17:11:58 +0000 (18:11 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 12 May 2008 11:16:24 +0000 (12:16 +0100)
block-raw-posix.c

index 768d52c57793629adcbcad0ef7c35ce65d0c8faf..71e304d17c7ca8024e2c7a2f3b526445e4fd68f2 100644 (file)
@@ -429,6 +429,20 @@ static BlockDriverAIOCB *raw_aio_write(BlockDriverState *bs,
     return &acb->common;
 }
 
+static BlockDriverAIOCB *raw_aio_flush(BlockDriverState *bs,
+        BlockDriverCompletionFunc *cb, void *opaque)
+{
+    RawAIOCB *acb;
+
+    acb = raw_aio_setup(bs, 0, NULL, 0, cb, opaque);
+    if (!acb)
+        return NULL;
+    if (aio_fsync(O_SYNC, &acb->aiocb) < 0) {
+        qemu_aio_release(acb);
+        return NULL;
+    }
+    return &acb->common;
+}
 static void raw_aio_cancel(BlockDriverAIOCB *blockacb)
 {
     int ret;
@@ -763,20 +777,6 @@ static int fd_open(BlockDriverState *bs)
     return 0;
 }
 
-static BlockDriverAIOCB *raw_aio_flush(BlockDriverState *bs,
-        BlockDriverCompletionFunc *cb, void *opaque)
-{
-    RawAIOCB *acb;
-
-    acb = raw_aio_setup(bs, 0, NULL, 0, cb, opaque);
-    if (!acb)
-        return NULL;
-    if (aio_fsync(O_SYNC, &acb->aiocb) < 0) {
-        qemu_aio_release(acb);
-        return NULL;
-    }
-    return &acb->common;
-}
 #endif
 
 #if defined(__linux__)