Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177625
b: refs/heads/master
c: 138ce28
h: refs/heads/master
i:
  177623: 2ec5357
v: v3
  • Loading branch information
Wu Fengguang authored and Andi Kleen committed Dec 16, 2009
1 parent 9fbf9c4 commit cac2a11
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d95ea51e3a7e9ee051d19f1dd283ca61d1aa5ec6
refs/heads/master: 138ce286eb6ee6d39ca4fb50516e93adaf6b605f
8 changes: 6 additions & 2 deletions trunk/mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,17 +654,21 @@ static int page_action(struct page_state *ps, struct page *p,
action_result(pfn, ps->msg, result);

count = page_count(p) - 1;
if (count != 0)
if (ps->action == me_swapcache_dirty && result == DELAYED)
count--;
if (count != 0) {
printk(KERN_ERR
"MCE %#lx: %s page still referenced by %d users\n",
pfn, ps->msg, count);
result = FAILED;
}

/* Could do more checks here if page looks ok */
/*
* Could adjust zone counters here to correct for the missing page.
*/

return result == RECOVERED ? 0 : -EBUSY;
return (result == RECOVERED || result == DELAYED) ? 0 : -EBUSY;
}

#define N_UNMAP_TRIES 5
Expand Down

0 comments on commit cac2a11

Please sign in to comment.