diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index cace22b3ac25..18f0e044c43d 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -3244,7 +3244,7 @@ void *__init alloc_large_system_hash(const char *tablename, | |||
3244 | if (numentries > max) | 3244 | if (numentries > max) |
3245 | numentries = max; | 3245 | numentries = max; |
3246 | 3246 | ||
3247 | log2qty = long_log2(numentries); | 3247 | log2qty = ilog2(numentries); |
3248 | 3248 | ||
3249 | do { | 3249 | do { |
3250 | size = bucketsize << log2qty; | 3250 | size = bucketsize << log2qty; |
@@ -3266,7 +3266,7 @@ void *__init alloc_large_system_hash(const char *tablename, | |||
3266 | printk("%s hash table entries: %d (order: %d, %lu bytes)\n", | 3266 | printk("%s hash table entries: %d (order: %d, %lu bytes)\n", |
3267 | tablename, | 3267 | tablename, |
3268 | (1U << log2qty), | 3268 | (1U << log2qty), |
3269 | long_log2(size) - PAGE_SHIFT, | 3269 | ilog2(size) - PAGE_SHIFT, |
3270 | size); | 3270 | size); |
3271 | 3271 | ||
3272 | if (_hash_shift) | 3272 | if (_hash_shift) |