@@ -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);
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(-) -- 2.17.1