diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 637f57ff5b5a..338a02bb004d 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2702,8 +2702,7 @@ void *__init alloc_large_system_hash(const char *tablename, | |||
2702 | else | 2702 | else |
2703 | numentries <<= (PAGE_SHIFT - scale); | 2703 | numentries <<= (PAGE_SHIFT - scale); |
2704 | } | 2704 | } |
2705 | /* rounded up to nearest power of 2 in size */ | 2705 | numentries = roundup_pow_of_two(numentries); |
2706 | numentries = 1UL << (long_log2(numentries) + 1); | ||
2707 | 2706 | ||
2708 | /* limit allocation size to 1/16 total memory by default */ | 2707 | /* limit allocation size to 1/16 total memory by default */ |
2709 | if (max == 0) { | 2708 | if (max == 0) { |