aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/memory-failure.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index e354b9f2f389..dacc64183874 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -613,13 +613,16 @@ static int page_action(struct page_state *ps, struct page *p,
613 unsigned long pfn, int ref) 613 unsigned long pfn, int ref)
614{ 614{
615 int result; 615 int result;
616 int count;
616 617
617 result = ps->action(p, pfn); 618 result = ps->action(p, pfn);
618 action_result(pfn, ps->msg, result); 619 action_result(pfn, ps->msg, result);
619 if (page_count(p) != 1 + ref) 620
621 count = page_count(p) - 1 - ref;
622 if (count != 0)
620 printk(KERN_ERR 623 printk(KERN_ERR
621 "MCE %#lx: %s page still referenced by %d users\n", 624 "MCE %#lx: %s page still referenced by %d users\n",
622 pfn, ps->msg, page_count(p) - 1); 625 pfn, ps->msg, count);
623 626
624 /* Could do more checks here if page looks ok */ 627 /* Could do more checks here if page looks ok */
625 /* 628 /*