aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-03-06 15:10:07 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-06 15:10:07 -0500
commit264132bc62fe071d0ff378c1103bae9d33212f10 (patch)
tree8b293d7c7465f28b4fe2788df70e25dfda2be088 /mm
parent24ed6e2c7894350d9bc06a559d3c23338ecf3323 (diff)
Fix "check_slabp" printout size calculation
We want to use the "struct slab" size, not the size of the pointer to same. As it is, we'd not print out the last <n> entry pointers in the slab (where <n> is ~10, depending on whether it's a 32-bit or 64-bit kernel). Gaah, that slab code was written by somebody who likes unreadable crud. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index add05d808a4a..2b0b1519bb74 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2554,7 +2554,7 @@ static void check_slabp(struct kmem_cache *cachep, struct slab *slabp)
2554 "slab: Internal list corruption detected in cache '%s'(%d), slabp %p(%d). Hexdump:\n", 2554 "slab: Internal list corruption detected in cache '%s'(%d), slabp %p(%d). Hexdump:\n",
2555 cachep->name, cachep->num, slabp, slabp->inuse); 2555 cachep->name, cachep->num, slabp, slabp->inuse);
2556 for (i = 0; 2556 for (i = 0;
2557 i < sizeof(slabp) + cachep->num * sizeof(kmem_bufctl_t); 2557 i < sizeof(*slabp) + cachep->num * sizeof(kmem_bufctl_t);
2558 i++) { 2558 i++) {
2559 if ((i % 16) == 0) 2559 if ((i % 16) == 0)
2560 printk("\n%03x:", i); 2560 printk("\n%03x:", i);