Index: linux-2.6.14-mm1/mm/hugetlb.c =================================================================== --- linux-2.6.14-mm1.orig/mm/hugetlb.c 2005-11-10 15:02:05.000000000 -0800 +++ linux-2.6.14-mm1/mm/hugetlb.c 2005-11-10 16:29:16.000000000 -0800 @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -41,7 +42,8 @@ static struct page *dequeue_huge_page(vo 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; }