diff options
author | Robin Holt <holt@sgi.com> | 2010-10-07 15:59:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-07 16:31:21 -0400 |
commit | f241e6607b5a5aefa23c652dbe947b7465633984 (patch) | |
tree | 5dbc0aba2d1cdf217176940415dcd17f6d86af8d /mm/page_alloc.c | |
parent | cb655d0f3d57c23db51b981648e452988c0223f9 (diff) |
mm: alloc_large_system_hash() printk overflow on 16TB boot
During boot of a 16TB system, the following is printed:
Dentry cache hash table entries: -2147483648 (order: 22, 17179869184 bytes)
Signed-off-by: Robin Holt <holt@sgi.com>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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 a8cfa9cc6e86..f12ad1836abe 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -5182,9 +5182,9 @@ void *__init alloc_large_system_hash(const char *tablename, | |||
5182 | if (!table) | 5182 | if (!table) |
5183 | panic("Failed to allocate %s hash table\n", tablename); | 5183 | panic("Failed to allocate %s hash table\n", tablename); |
5184 | 5184 | ||
5185 | printk(KERN_INFO "%s hash table entries: %d (order: %d, %lu bytes)\n", | 5185 | printk(KERN_INFO "%s hash table entries: %ld (order: %d, %lu bytes)\n", |
5186 | tablename, | 5186 | tablename, |
5187 | (1U << log2qty), | 5187 | (1UL << log2qty), |
5188 | ilog2(size) - PAGE_SHIFT, | 5188 | ilog2(size) - PAGE_SHIFT, |
5189 | size); | 5189 | size); |
5190 | 5190 | ||