Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167856
b: refs/heads/master
c: 7456b04
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang authored and Andi Kleen committed Oct 19, 2009
1 parent 168e43b commit 4b34657
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 65a64464349883891e21e74af16c05d6e1eeb4e9
refs/heads/master: 7456b0405d8fc063c49628f969cdb23be060fc80
7 changes: 5 additions & 2 deletions trunk/mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,16 @@ static int page_action(struct page_state *ps, struct page *p,
unsigned long pfn, int ref)
{
int result;
int count;

result = ps->action(p, pfn);
action_result(pfn, ps->msg, result);
if (page_count(p) != 1 + ref)

count = page_count(p) - 1 - ref;
if (count != 0)
printk(KERN_ERR
"MCE %#lx: %s page still referenced by %d users\n",
pfn, ps->msg, page_count(p) - 1);
pfn, ps->msg, count);

/* Could do more checks here if page looks ok */
/*
Expand Down

0 comments on commit 4b34657

Please sign in to comment.