projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb655d0
)
mm: alloc_large_system_hash() printk overflow on 16TB boot
author
Robin Holt
<
[email protected]
>
Thu, 7 Oct 2010 19:59:26 +0000
(12:59 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 7 Oct 2010 20:31:21 +0000
(13:31 -0700)
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 <
[email protected]
>
Reviewed-by: WANG Cong <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page_alloc.c
patch
|
blob
|
history
diff --git
a/mm/page_alloc.c
b/mm/page_alloc.c
index a8cfa9cc6e86e5d6912a39bc3f5c9d18fb97b7cf..f12ad1836abe115b1b8e3bf4b9187c01249e8a30 100644
(file)
--- a/
mm/page_alloc.c
+++ b/
mm/page_alloc.c
@@
-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: %
l
d (order: %d, %lu bytes)\n",
tablename,
- (1U << log2qty),
+ (1U
L
<< log2qty),
ilog2(size) - PAGE_SHIFT,
size);