lkml.org 
[lkml]   [2020]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 2/7] RAS/CEC: Replace pfns_poisoned with elems_poisoned
Date
Replace the variable pfns_poisoned with elems_poisoned
for the common use.

Signed-off-by: Shiju Jose <shiju.jose@huawei.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

\
 
 \ /
  Last update: 2020-10-02 14:28    [W:0.061 / U:2.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site