From patchwork Wed Jul 20 12:53:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frediano Ziglio X-Patchwork-Id: 105699 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 15C2EB6F6B for ; Thu, 21 Jul 2011 00:53:45 +1000 (EST) Received: from localhost ([::1]:40245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjY9d-0003QP-5O for incoming@patchwork.ozlabs.org; Wed, 20 Jul 2011 10:53:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjWHa-0006fu-LI for qemu-devel@nongnu.org; Wed, 20 Jul 2011 08:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjWHZ-0001lU-7h for qemu-devel@nongnu.org; Wed, 20 Jul 2011 08:53:46 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:40037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjWHY-0001lQ-T5 for qemu-devel@nongnu.org; Wed, 20 Jul 2011 08:53:45 -0400 Received: by vws17 with SMTP id 17so144415vws.4 for ; Wed, 20 Jul 2011 05:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=Al2c2rJECCQZtjTJ7OyGkYaExcc1OhNh3vh9UMYohqM=; b=GNN4sCIFyJq69tMCPHZ4oOlWrxPwEOffBnt+Xlak+Ub+LNbaLGW61GhI/8X8zKITHt phY1Qe2Rm6MTMA7WvR+24fPbqUEUV+8R2MI3GDBiQY+XKet7SMmLeIXImNUcZb3mJ2Di Iibu7eNxfyZ7oXafJ/1THhf7Pc0yiuXlESqak= Received: by 10.52.38.41 with SMTP id d9mr8455488vdk.144.1311166386328; Wed, 20 Jul 2011 05:53:06 -0700 (PDT) Received: from obol602.omnitel.it (ec2-50-19-60-24.compute-1.amazonaws.com [50.19.60.24]) by mx.google.com with ESMTPS id r12sm50447vcq.12.2011.07.20.05.53.03 (version=SSLv3 cipher=OTHER); Wed, 20 Jul 2011 05:53:04 -0700 (PDT) From: Frediano Ziglio To: qemu-devel@nongnu.org Date: Wed, 20 Jul 2011 14:53:12 +0200 Message-Id: <1311166392-28933-1-git-send-email-freddy77@gmail.com> X-Mailer: git-send-email 1.7.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.45 Cc: Frediano Ziglio Subject: [Qemu-devel] [PATCH] removed unused function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Frediano Ziglio --- block.c | 13 ------------- block.h | 2 -- 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/block.c b/block.c index 24a25d5..b879d2f 100644 --- a/block.c +++ b/block.c @@ -1108,19 +1108,6 @@ int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset, return 0; } -/* - * Writes to the file and ensures that no writes are reordered across this - * request (acts as a barrier) - * - * Returns 0 on success, -errno in error cases. - */ -int bdrv_write_sync(BlockDriverState *bs, int64_t sector_num, - const uint8_t *buf, int nb_sectors) -{ - return bdrv_pwrite_sync(bs, BDRV_SECTOR_SIZE * sector_num, - buf, BDRV_SECTOR_SIZE * nb_sectors); -} - /** * Truncate file to 'offset' bytes (needed only for file protocols) */ diff --git a/block.h b/block.h index 859d1d9..6f3e5d0 100644 --- a/block.h +++ b/block.h @@ -85,8 +85,6 @@ int bdrv_pwrite(BlockDriverState *bs, int64_t offset, const void *buf, int count); int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset, const void *buf, int count); -int bdrv_write_sync(BlockDriverState *bs, int64_t sector_num, - const uint8_t *buf, int nb_sectors); int bdrv_truncate(BlockDriverState *bs, int64_t offset); int64_t bdrv_getlength(BlockDriverState *bs); void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr);