Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f241e660 authored by Robin Holt's avatar Robin Holt Committed by Linus Torvalds
Browse files

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: default avatarRobin Holt <holt@sgi.com>
Reviewed-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cb655d0f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5182,9 +5182,9 @@ void *__init alloc_large_system_hash(const char *tablename,
	if (!table)
		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,
	       (1U << log2qty),
	       (1UL << log2qty),
	       ilog2(size) - PAGE_SHIFT,
	       size);