From: Christoph Lameter Date: Wed, 23 May 2007 20:57:56 +0000 (-0700) Subject: SLUB Debug: fix check for super sized slabs (>512k 64bit, >256k 32bit) X-Git-Tag: v2.6.22-rc3~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e9e24101abac2bf3535d0d013d6d27d19197cb;p=pandora-kernel.git SLUB Debug: fix check for super sized slabs (>512k 64bit, >256k 32bit) The check for super sized slabs where we can no longer move the free pointer behind the object for debugging purposes etc is accessing a field that is not setup yet. We must use objsize here since the size of the slab has not been determined yet. The effect of this is that a global slab shrink via "slabinfo -s" will show errors about offsets being wrong if booted with slub_debug. Potentially there are other troubles with huge slabs under slub_debug because the calculated free pointer offset is truncated. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed