diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 7cc3179e3591..cbed869fd831 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -4511,7 +4511,10 @@ void *__init alloc_large_system_hash(const char *tablename, | |||
4511 | table = __vmalloc(size, GFP_ATOMIC, PAGE_KERNEL); | 4511 | table = __vmalloc(size, GFP_ATOMIC, PAGE_KERNEL); |
4512 | else { | 4512 | else { |
4513 | unsigned long order = get_order(size); | 4513 | unsigned long order = get_order(size); |
4514 | table = (void*) __get_free_pages(GFP_ATOMIC, order); | 4514 | |
4515 | if (order < MAX_ORDER) | ||
4516 | table = (void *)__get_free_pages(GFP_ATOMIC, | ||
4517 | order); | ||
4515 | /* | 4518 | /* |
4516 | * If bucketsize is not a power-of-two, we may free | 4519 | * If bucketsize is not a power-of-two, we may free |
4517 | * some pages at the end of hash table. | 4520 | * some pages at the end of hash table. |