Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16846
b: refs/heads/master
c: aea47ff
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Jan 9, 2006
1 parent 720b590 commit 5a8666b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 45b07ef31d1182d2cfde7711327e3afb268bb1ac
refs/heads/master: aea47ff363c15b0be5fc27ed991b1fdee338f0a7
4 changes: 3 additions & 1 deletion trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5a8666b

Please sign in to comment.