Index: linux-2.6.18-rc3-mm2/mm/page_alloc.c =================================================================== --- linux-2.6.18-rc3-mm2.orig/mm/page_alloc.c 2006-08-09 18:37:06.434599531 -0700 +++ linux-2.6.18-rc3-mm2/mm/page_alloc.c 2006-08-10 20:13:53.674465629 -0700 @@ -918,12 +918,14 @@ get_page_from_freelist(gfp_t gfp_mask, u */ do { zone = *z; +#ifdef CONFIG_NUMA if (unlikely((gfp_mask & __GFP_THISNODE) && zone->zone_pgdat != zonelist->zones[0]->zone_pgdat)) break; if ((alloc_flags & ALLOC_CPUSET) && !cpuset_zone_allowed(zone, gfp_mask)) continue; +#endif if (!(alloc_flags & ALLOC_NO_WATERMARKS)) { unsigned long mark;