* [Patch] alloc_large_system_hash printk overflow on 16TB boot.
[not found] <20101003132604.459149164@gulag1.americas.sgi.com>
@ 2010-10-03 13:26 ` Robin Holt
2010-10-04 3:29 ` Américo Wang
0 siblings, 1 reply; 2+ messages in thread
From: Robin Holt @ 2010-10-03 13:26 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml
[-- Attachment #1: alloc_large_system_hash_overflow --]
[-- Type: text/plain, Size: 995 bytes --]
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>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: lkml <linux-kernel@vger.kernel.org>
---
mm/page_alloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: pv1010934/mm/page_alloc.c
===================================================================
--- pv1010934.orig/mm/page_alloc.c 2010-10-01 10:27:07.000000000 -0500
+++ pv1010934/mm/page_alloc.c 2010-10-03 07:53:13.551824924 -0500
@@ -5182,9 +5182,9 @@ void *__init alloc_large_system_hash(con
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] alloc_large_system_hash printk overflow on 16TB boot.
2010-10-03 13:26 ` [Patch] alloc_large_system_hash printk overflow on 16TB boot Robin Holt
@ 2010-10-04 3:29 ` Américo Wang
0 siblings, 0 replies; 2+ messages in thread
From: Américo Wang @ 2010-10-04 3:29 UTC (permalink / raw)
To: Robin Holt; +Cc: Andrew Morton, lkml
On Sun, Oct 03, 2010 at 08:26:05AM -0500, Robin Holt wrote:
>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>
>To: Andrew Morton <akpm@linux-foundation.org>
>Cc: lkml <linux-kernel@vger.kernel.org>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Thanks.
>
>---
>
> mm/page_alloc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>Index: pv1010934/mm/page_alloc.c
>===================================================================
>--- pv1010934.orig/mm/page_alloc.c 2010-10-01 10:27:07.000000000 -0500
>+++ pv1010934/mm/page_alloc.c 2010-10-03 07:53:13.551824924 -0500
>@@ -5182,9 +5182,9 @@ void *__init alloc_large_system_hash(con
> 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);
>
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-04 3:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20101003132604.459149164@gulag1.americas.sgi.com>
2010-10-03 13:26 ` [Patch] alloc_large_system_hash printk overflow on 16TB boot Robin Holt
2010-10-04 3:29 ` Américo Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome