From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7bWH-00056Z-9m for qemu-devel@nongnu.org; Tue, 02 Dec 2008 15:06:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7bWG-000564-RJ for qemu-devel@nongnu.org; Tue, 02 Dec 2008 15:06:52 -0500 Received: from [199.232.76.173] (port=38630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7bWG-00055z-IS for qemu-devel@nongnu.org; Tue, 02 Dec 2008 15:06:52 -0500 Received: from savannah.gnu.org ([199.232.41.3]:39204 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7bWG-0003nk-6S for qemu-devel@nongnu.org; Tue, 02 Dec 2008 15:06:52 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L7bWF-0002Wd-LK for qemu-devel@nongnu.org; Tue, 02 Dec 2008 20:06:51 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L7bWF-0002WP-FK for qemu-devel@nongnu.org; Tue, 02 Dec 2008 20:06:51 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Tue, 02 Dec 2008 20:06:51 +0000 Subject: [Qemu-devel] [5857] Remove tabs from qcow_aio_read_cb(). Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5857 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5857 Author: aliguori Date: 2008-12-02 20:06:51 +0000 (Tue, 02 Dec 2008) Log Message: ----------- Remove tabs from qcow_aio_read_cb(). (Gleb Natapov) Fix indentation. Signed-off-by: Gleb Natapov Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/block-qcow2.c Modified: trunk/block-qcow2.c =================================================================== --- trunk/block-qcow2.c 2008-12-02 20:02:14 UTC (rev 5856) +++ trunk/block-qcow2.c 2008-12-02 20:06:51 UTC (rev 5857) @@ -1186,7 +1186,7 @@ acb->hd_aiocb = NULL; if (ret < 0) { - fail: +fail: acb->common.cb(acb->common.opaque, ret); qemu_aio_release(acb); return; @@ -1232,30 +1232,30 @@ if (acb->hd_aiocb == NULL) goto fail; } else { - if (acb->bh) { - ret = -EIO; - goto fail; - } - acb->bh = qemu_bh_new(qcow_aio_read_bh, acb); - if (!acb->bh) { - ret = -EIO; - goto fail; - } - qemu_bh_schedule(acb->bh); + if (acb->bh) { + ret = -EIO; + goto fail; + } + acb->bh = qemu_bh_new(qcow_aio_read_bh, acb); + if (!acb->bh) { + ret = -EIO; + goto fail; + } + qemu_bh_schedule(acb->bh); } } else { /* Note: in this case, no need to wait */ memset(acb->buf, 0, 512 * acb->n); - if (acb->bh) { - ret = -EIO; - goto fail; - } - acb->bh = qemu_bh_new(qcow_aio_read_bh, acb); - if (!acb->bh) { - ret = -EIO; - goto fail; - } - qemu_bh_schedule(acb->bh); + if (acb->bh) { + ret = -EIO; + goto fail; + } + acb->bh = qemu_bh_new(qcow_aio_read_bh, acb); + if (!acb->bh) { + ret = -EIO; + goto fail; + } + qemu_bh_schedule(acb->bh); } } else if (acb->cluster_offset & QCOW_OFLAG_COMPRESSED) { /* add AIO support for compressed blocks ? */ @@ -1263,16 +1263,16 @@ goto fail; memcpy(acb->buf, s->cluster_cache + index_in_cluster * 512, 512 * acb->n); - if (acb->bh) { - ret = -EIO; - goto fail; - } - acb->bh = qemu_bh_new(qcow_aio_read_bh, acb); - if (!acb->bh) { - ret = -EIO; - goto fail; - } - qemu_bh_schedule(acb->bh); + if (acb->bh) { + ret = -EIO; + goto fail; + } + acb->bh = qemu_bh_new(qcow_aio_read_bh, acb); + if (!acb->bh) { + ret = -EIO; + goto fail; + } + qemu_bh_schedule(acb->bh); } else { if ((acb->cluster_offset & 511) != 0) { ret = -EIO; @@ -1551,7 +1551,7 @@ memset(s->l1_table, 0, l1_length); if (bdrv_pwrite(s->hd, s->l1_table_offset, s->l1_table, l1_length) < 0) - return -1; + return -1; ret = bdrv_truncate(s->hd, s->l1_table_offset + l1_length); if (ret < 0) return ret;