[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201002122235.1280-3-shiju.jose@huawei.com>
Date: Fri, 2 Oct 2020 13:22:30 +0100
From: Shiju Jose <shiju.jose@...wei.com>
To: <linux-edac@...r.kernel.org>, <linux-acpi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <bp@...en8.de>,
<tony.luck@...el.com>, <rjw@...ysocki.net>, <james.morse@....com>,
<lenb@...nel.org>
CC: <linuxarm@...wei.com>, <shiju.jose@...wei.com>
Subject: [RFC PATCH 2/7] RAS/CEC: Replace pfns_poisoned with elems_poisoned
Replace the variable pfns_poisoned with elems_poisoned
for the common use.
Signed-off-by: Shiju Jose <shiju.jose@...wei.com>
---
drivers/ras/cec.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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);
--
2.17.1
Powered by blists - more mailing lists