]> err.no Git - linux-2.6/commit
slub: ksize() abuse checks
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 22 May 2008 16:22:25 +0000 (19:22 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Thu, 22 May 2008 16:52:18 +0000 (19:52 +0300)
commit76994412f8e824e79a593d6777ec327d85f942b2
tree9acd5883a43daf1bf21ab23608915c1181fd2008
parent239f49c0800778c863585a103805c58afbad6748
slub: ksize() abuse checks

Add a WARN_ON for pages that don't have PageSlab nor PageCompound set to catch
the worst abusers of ksize() in the kernel.

Acked-by: Christoph Lameter <clameter@sgi.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c