Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177614
b: refs/heads/master
c: a7560fc
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang authored and Andi Kleen committed Dec 16, 2009
1 parent 234ae43 commit dafdcaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 9b9a29ecd75e310f75a9243e1c3538ad34598fcb
refs/heads/master: a7560fc80f33cab33176ee78f146df22b28e3338
12 changes: 6 additions & 6 deletions trunk/mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,13 +618,11 @@ static struct page_state {

static void action_result(unsigned long pfn, char *msg, int result)
{
struct page *page = NULL;
if (pfn_valid(pfn))
page = pfn_to_page(pfn);
struct page *page = pfn_to_page(pfn);

printk(KERN_ERR "MCE %#lx: %s%s page recovery: %s\n",
pfn,
page && PageDirty(page) ? "dirty " : "",
PageDirty(page) ? "dirty " : "",
msg, action_name[result]);
}

Expand Down Expand Up @@ -750,8 +748,10 @@ int __memory_failure(unsigned long pfn, int trapno, int ref)
panic("Memory failure from trap %d on page %lx", trapno, pfn);

if (!pfn_valid(pfn)) {
action_result(pfn, "memory outside kernel control", IGNORED);
return -EIO;
printk(KERN_ERR
"MCE %#lx: memory outside kernel control\n",
pfn);
return -ENXIO;
}

p = pfn_to_page(pfn);
Expand Down

0 comments on commit dafdcaf

Please sign in to comment.