From patchwork Wed Sep 7 14:19:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frediano Ziglio X-Patchwork-Id: 113770 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 239C9B6F83 for ; Thu, 8 Sep 2011 00:19:05 +1000 (EST) Received: from localhost ([::1]:44276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Ixy-0006D0-JD for incoming@patchwork.ozlabs.org; Wed, 07 Sep 2011 10:19:02 -0400 Received: from eggs.gnu.org ([140.186.70.92]:57388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Ixn-0006AI-5d for qemu-devel@nongnu.org; Wed, 07 Sep 2011 10:18:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1Ixi-0005l5-VS for qemu-devel@nongnu.org; Wed, 07 Sep 2011 10:18:51 -0400 Received: from mail-ww0-f53.google.com ([74.125.82.53]:56723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1Ixi-0005l1-R4 for qemu-devel@nongnu.org; Wed, 07 Sep 2011 10:18:46 -0400 Received: by wwf25 with SMTP id 25so7006811wwf.10 for ; Wed, 07 Sep 2011 07:18:45 -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=M8mlmoTxDVeoTOId0/HUu0NmkXSv5up9fO9s6sre88I=; b=HP4oqKOlgZTYSZGEruv3+jl0100BF67M1GF8VRAMrq83qDFmLyCVwCco1u0f7OzZJW 5U4VHu9Ly/CMGm5HCHLBcnabN4rL5qSEXC5ZSxh6mt4PUf3eTtc0m2uQ01blT0DZ6fdu BKU1tuIuh0u2HY9yaEkdjG/dpSkD9srHKdC0I= Received: by 10.216.53.209 with SMTP id g59mr4816588wec.93.1315405125761; Wed, 07 Sep 2011 07:18:45 -0700 (PDT) Received: from obol602.omnitel.it (lumumba.torservers.net [77.247.181.163]) by mx.google.com with ESMTPS id fd4sm554760wbb.21.2011.09.07.07.18.42 (version=SSLv3 cipher=OTHER); Wed, 07 Sep 2011 07:18:44 -0700 (PDT) From: Frediano Ziglio To: kwolf@redhat.com Date: Wed, 7 Sep 2011 16:19:17 +0200 Message-Id: <1315405157-8854-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: 74.125.82.53 Cc: qemu-devel@nongnu.org, Frediano Ziglio Subject: [Qemu-devel] [PATCH] qcow2: removed unused depends_on field 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/qcow2-cluster.c | 3 +-- block/qcow2.h | 1 - 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index e06be64..113db8b 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -694,7 +694,7 @@ err: * If the offset is not found, allocate a new cluster. * * If the cluster was already allocated, m->nb_clusters is set to 0, - * m->depends_on is set to NULL and the other fields in m are meaningless. + * other fields in m are meaningless. * * If the cluster is newly allocated, m->nb_clusters is set to the number of * contiguous clusters that have been allocated. In this case, the other @@ -736,7 +736,6 @@ again: cluster_offset &= ~QCOW_OFLAG_COPIED; m->nb_clusters = 0; - m->depends_on = NULL; goto out; } diff --git a/block/qcow2.h b/block/qcow2.h index c8ca3bc..531af39 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -148,7 +148,6 @@ typedef struct QCowL2Meta int n_start; int nb_available; int nb_clusters; - struct QCowL2Meta *depends_on; CoQueue dependent_requests; QLIST_ENTRY(QCowL2Meta) next_in_flight;