提交 f241e660 编写于 作者: R Robin Holt 提交者: Linus Torvalds

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: NRobin Holt <holt@sgi.com>
Reviewed-by: NWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 cb655d0f
...@@ -5182,9 +5182,9 @@ void *__init alloc_large_system_hash(const char *tablename, ...@@ -5182,9 +5182,9 @@ void *__init alloc_large_system_hash(const char *tablename,
if (!table) if (!table)
panic("Failed to allocate %s hash table\n", tablename); panic("Failed to allocate %s hash table\n", tablename);
printk(KERN_INFO "%s hash table entries: %d (order: %d, %lu bytes)\n", printk(KERN_INFO "%s hash table entries: %ld (order: %d, %lu bytes)\n",
tablename, tablename,
(1U << log2qty), (1UL << log2qty),
ilog2(size) - PAGE_SHIFT, ilog2(size) - PAGE_SHIFT,
size); size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册