| Submitter | Dimitri Sivanich |
|---|---|
| Date | Jan. 13, 2012, 4:36 p.m. |
| Message ID | <20120113163642.GB25788@sgi.com> |
| Download | mbox | patch |
| Permalink | /patch/135922/ |
| State | Not Applicable |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
Index: linux/mm/page_alloc.c =================================================================== --- linux.orig/mm/page_alloc.c +++ linux/mm/page_alloc.c @@ -5257,6 +5257,7 @@ void *__init alloc_large_system_hash(con if (max == 0) { max = ((unsigned long long)nr_all_pages << PAGE_SHIFT) >> 4; do_div(max, bucketsize); + max = min(max, 1ULL << 30); } if (numentries > max)