Message ID | 20120113163927.GB26353@sgi.com |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
Index: linux/mm/page_alloc.c =================================================================== --- linux.orig/mm/page_alloc.c +++ linux/mm/page_alloc.c @@ -5258,6 +5258,7 @@ void *__init alloc_large_system_hash(con max = ((unsigned long long)nr_all_pages << PAGE_SHIFT) >> 4; do_div(max, bucketsize); } + max = min(max, 1ULL << 30); if (numentries > max) numentries = max;