projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45b07ef
)
[PATCH] mm: make hugepages obey cpusets.
author
Christoph Lameter
<
[email protected]
>
Sun, 8 Jan 2006 09:00:57 +0000
(
01:00
-0800)
committer
Linus Torvalds
<
[email protected]
>
Mon, 9 Jan 2006 04:12:43 +0000
(20:12 -0800)
See http://marc.theaimsgroup.com/?l=linux-kernel&m=
113167000201265
&w=2
http://marc.theaimsgroup.com/?l=linux-mm&m=
113167267527312
&w=2
Make hugepages obey cpusets.
Signed-off-by: Christoph Lameter <
[email protected]
>
Acked-by: William Irwin <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/hugetlb.c
patch
|
blob
|
history
diff --git
a/mm/hugetlb.c
b/mm/hugetlb.c
index f4c43d7980ba2d83ff3d038995792aa93d991d18..b21d78c941b527b9c8021d23a6d63bf3dd892523 100644
(file)
--- a/
mm/hugetlb.c
+++ b/
mm/hugetlb.c
@@
-12,6
+12,7
@@
#include <linux/nodemask.h>
#include <linux/pagemap.h>
#include <linux/mempolicy.h>
+#include <linux/cpuset.h>
#include <asm/page.h>
#include <asm/pgtable.h>
@@
-48,7
+49,8
@@
static struct page *dequeue_huge_page(struct vm_area_struct *vma,
for (z = zonelist->zones; *z; z++) {
nid = (*z)->zone_pgdat->node_id;
- if (!list_empty(&hugepage_freelists[nid]))
+ if (cpuset_zone_allowed(*z, GFP_HIGHUSER) &&
+ !list_empty(&hugepage_freelists[nid]))
break;
}