projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d57eb8
)
HWPOISON: Try to allocate migration page on the same node
author
Andi Kleen
<andi@firstfloor.org>
Wed, 16 Dec 2009 11:20:01 +0000
(12:20 +0100)
committer
Andi Kleen
<ak@linux.intel.com>
Wed, 16 Dec 2009 11:20:01 +0000
(12:20 +0100)
Signed-off-by: Andi Kleen <ak@linux.intel.com>
mm/memory-failure.c
patch
|
blob
|
history
diff --git
a/mm/memory-failure.c
b/mm/memory-failure.c
index
bcce287
..
006430b
100644
(file)
--- a/
mm/memory-failure.c
+++ b/
mm/memory-failure.c
@@
-1113,7
+1113,8
@@
EXPORT_SYMBOL(unpoison_memory);
static struct page *new_page(struct page *p, unsigned long private, int **x)
{
- return alloc_pages(GFP_HIGHUSER_MOVABLE, 0);
+ int nid = page_to_nid(p);
+ return alloc_pages_exact_node(nid, GFP_HIGHUSER_MOVABLE, 0);
}
/*