From patchwork Fri Oct 2 12:22:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiju Jose X-Patchwork-Id: 313984 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:1081:0:0:0:0 with SMTP id r1csp1412436ilj; Fri, 2 Oct 2020 05:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMlK77VKNTh8ub7/xUNZspS8LRfpnhu9IxJAKOs1YqKQA+sYng28nzBvo9sgXbZRFfR3RE X-Received: by 2002:a17:906:1955:: with SMTP id b21mr2096557eje.42.1601641692936; Fri, 02 Oct 2020 05:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601641692; cv=none; d=google.com; s=arc-20160816; b=K0T4hw3LFk0J69gsjXp9cwZfoY8Mn1cEgWLd3TZdIBBIpXgT1NTihvqTu7QfCoGK+u h2lrGBtCK0ON6CWU88jItrSz3G7Siz20jALsvaide6QDlvILvsG7NaGFnMkFZ4pgyDbT E2O8/WGQ9uLvapr7gysmG+qfuwMYD403zdLySnApax7OFLBJChfCzxcQPSZCvNbt+GrK vTfXHTvtn6RzrPvPlnOudHTHOujW7OlqHf478djz3dpOx6ZWCh+OreODhAf2MByup2JT BDeHWmOEDF23VLGgU8RhBzh22npSzLTTvQfOzPaFhxm4QMleNDCnavtrZr706JdNcLue +Pzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LWxvSKSbAeA4iwQB3M5oIlzzEeacfrTY+9gi3P9/wP0=; b=hZDJzVCFbwDzyiI/3O1VGJ2jxoR4dabNYRdLs8GgofOfs8ysSnMfFq0kPM/IccCVCc +A1xuB4Xij0qK+9ToIS8VWf7iSazhVE6ogxE2febi6vnne8FFJpo4EEhhb2PcVgeu+Yw k6fOIsiqyGEFMx4F/WAJOVOWqnAKMVgV0nrIaDPCGy6uK6c+1HmZpFB9aPvHoSzr//+l Hbq01m7S5xH/aL8kUjQHAQa7gknmBASfPKZfXxMaezgcyEytSO4NQ/E23kkKo/k6RevP BvibSlEyaglzQLSG6QFmZDjnxceZM0xNRXviolqDcsL+g4fZOlKThmwNJxxMzSwIVaio klTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si968319edi.564.2020.10.02.05.28.12; Fri, 02 Oct 2020 05:28:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387806AbgJBM2J (ORCPT + 7 others); Fri, 2 Oct 2020 08:28:09 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2944 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726010AbgJBM2I (ORCPT ); Fri, 2 Oct 2020 08:28:08 -0400 Received: from lhreml715-chm.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 2E84F37E9A5E1E12C15D; Fri, 2 Oct 2020 13:28:07 +0100 (IST) Received: from DESKTOP-6T4S3DQ.china.huawei.com (10.47.84.119) by lhreml715-chm.china.huawei.com (10.201.108.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 2 Oct 2020 13:28:06 +0100 From: Shiju Jose To: , , , , , , , CC: , Subject: [RFC PATCH 2/7] RAS/CEC: Replace pfns_poisoned with elems_poisoned Date: Fri, 2 Oct 2020 13:22:30 +0100 Message-ID: <20201002122235.1280-3-shiju.jose@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201002122235.1280-1-shiju.jose@huawei.com> References: <20201002122235.1280-1-shiju.jose@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.84.119] X-ClientProxiedBy: lhreml720-chm.china.huawei.com (10.201.108.71) To lhreml715-chm.china.huawei.com (10.201.108.66) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Replace the variable pfns_poisoned with elems_poisoned for the common use. Signed-off-by: Shiju Jose --- drivers/ras/cec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index 22d11c66c266..f20da1103f27 100644 --- a/drivers/ras/cec.c +++ b/drivers/ras/cec.c @@ -100,8 +100,8 @@ static struct ce_array { * since the last spring cleaning. */ - u64 pfns_poisoned; /* - * number of PFNs which got poisoned. + u64 elems_poisoned; /* + * number of elements which got poisoned. */ u64 ces_entered; /* @@ -362,7 +362,7 @@ static int cec_add_elem(u64 pfn) /* We have reached max count for this page, soft-offline it. */ pr_err("Soft-offlining pfn: 0x%llx\n", pfn); memory_failure_queue(pfn, MF_SOFT_OFFLINE); - ca->pfns_poisoned++; + ca->elems_poisoned++; } del_elem(ca, to); @@ -457,7 +457,7 @@ static int array_dump(struct seq_file *m, void *v) seq_printf(m, "}\n"); seq_printf(m, "Stats:\nCEs: %llu\nofflined pages: %llu\n", - ca->ces_entered, ca->pfns_poisoned); + ca->ces_entered, ca->elems_poisoned); seq_printf(m, "Flags: 0x%x\n", ca->flags);