Message ID | dc90db7e9ed182418bb77958e84a7cf2930f409b.1507813391.git.berto@igalia.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="K9t/WmyN"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yCWWl2sM0z9t2m for <incoming@patchwork.ozlabs.org>; Fri, 13 Oct 2017 00:13:55 +1100 (AEDT) Received: from localhost ([::1]:45438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1e2dJB-0002zg-E2 for incoming@patchwork.ozlabs.org; Thu, 12 Oct 2017 09:13:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <berto@igalia.com>) id 1e2dGG-00017a-Lk for qemu-devel@nongnu.org; Thu, 12 Oct 2017 09:10:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <berto@igalia.com>) id 1e2dGF-0001Dr-Nv for qemu-devel@nongnu.org; Thu, 12 Oct 2017 09:10:52 -0400 Received: from fanzine.igalia.com ([91.117.99.155]:52304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <berto@igalia.com>) id 1e2dGF-0008JV-Ev; Thu, 12 Oct 2017 09:10:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=References:In-Reply-To:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=jv7VABHtfSbnAV5/F2P2VAfXiB+tWVPcgCtqkPxiRxQ=; b=K9t/WmyNdnL12vuhcNJ/2Csye+8WpUhMPsCAzb1sf1hMlJaaJcGwRsi4v7R4ibwGdrKPZ7jpM4H6FIZlpb8gklG00kseV3mT8SXPKd/zUGXxVWPncXMAlV/glOfBPtdOROr2KROvUJeVDRX9Wi79OCp9PcrXguUCq/66ySNsG1BgOywVoo3ReyQVJmYXGRjvBL02U0U8N5L/kPrh0VQRH66E8feMeTqg6vgTU7011A0mZKa4rbKYrrHv1pUvwcZtDUYtpTSuq9wJofEKyoEAYD7qyBrbwPk/wii6/gUGZLy6eGUrXMRdGqnISWF3aHl5LQe6ihLmlRf1K1xj0vNMoA==; Received: from a88-114-101-76.elisa-laajakaista.fi ([88.114.101.76] helo=perseus.local) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1e2dFi-0006MO-E3; Thu, 12 Oct 2017 15:10:18 +0200 Received: from berto by perseus.local with local (Exim 4.89) (envelope-from <berto@igalia.com>) id 1e2dCz-0003an-F8; Thu, 12 Oct 2017 16:07:29 +0300 From: Alberto Garcia <berto@igalia.com> To: qemu-devel@nongnu.org Date: Thu, 12 Oct 2017 16:05:44 +0300 Message-Id: <dc90db7e9ed182418bb77958e84a7cf2930f409b.1507813391.git.berto@igalia.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <cover.1507813391.git.berto@igalia.com> References: <cover.1507813391.git.berto@igalia.com> In-Reply-To: <cover.1507813391.git.berto@igalia.com> References: <cover.1507813391.git.berto@igalia.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 91.117.99.155 Subject: [Qemu-devel] [PATCH 30/31] qcow2: Rename l2_table in count_cow_clusters() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Kevin Wolf <kwolf@redhat.com>, "Denis V . Lunev" <den@openvz.org>, Alberto Garcia <berto@igalia.com>, qemu-block@nongnu.org, Max Reitz <mreitz@redhat.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
Allow configuring the qcow2 L2 cache entry size
|
expand
|
diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index bc94467733..465140b388 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -999,12 +999,12 @@ err: * which must copy from the backing file) */ static int count_cow_clusters(BDRVQcow2State *s, int nb_clusters, - uint64_t *l2_table, int l2_index) + uint64_t *l2_slice, int l2_index) { int i; for (i = 0; i < nb_clusters; i++) { - uint64_t l2_entry = be64_to_cpu(l2_table[l2_index + i]); + uint64_t l2_entry = be64_to_cpu(l2_slice[l2_index + i]); QCow2ClusterType cluster_type = qcow2_get_cluster_type(l2_entry); switch(cluster_type) {
This function doesn't need any changes to support L2 slices, but since it's now dealing with slices intead of full tables, the l2_table variable is renamed for clarity. Signed-off-by: Alberto Garcia <berto@igalia.com> --- block/qcow2-cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)