--- linux-2.6.18/mm/vmalloc.c 2006-10-09 13:58:13.000000000 +0200 +++ linux-2.6.18-ed/mm/vmalloc.c 2006-10-09 14:04:11.000000000 +0200 @@ -426,12 +426,12 @@ array_size = (nr_pages * sizeof(struct page *)); area->nr_pages = nr_pages; + pages = kmalloc_node(array_size, (gfp_mask & ~__GFP_HIGHMEM), node); /* Please note that the recursion is strictly bounded. */ - if (array_size > PAGE_SIZE) { + if (!pages && array_size > PAGE_SIZE) { pages = __vmalloc_node(array_size, gfp_mask, PAGE_KERNEL, node); area->flags |= VM_VPAGES; - } else - pages = kmalloc_node(array_size, (gfp_mask & ~__GFP_HIGHMEM), node); + } area->pages = pages; if (!area->pages) { remove_vm_area(area->addr);