slub: Remove BUG_ON() from ksize and omit checks for !SLUB_DEBUG
authorChristoph Lameter <clameter@sgi.com>
Sat, 16 Feb 2008 07:45:25 +0000 (23:45 -0800)
committerChristoph Lameter <clameter@sgi.com>
Mon, 3 Mar 2008 20:22:31 +0000 (12:22 -0800)
commitae20bfda6813387af18c7fdbc0f8b1fa7be2d05b
tree4455ba4cdd5a7bd1d3da13915965f1aed2dd84b0
parent27d9e4e94862c89d171cf70911b4f11ad69fb54e
slub: Remove BUG_ON() from ksize and omit checks for !SLUB_DEBUG

The BUG_ONs are useless since the pointer derefs will lead to
NULL deref errors anyways. Some of the checks are not necessary
if no debugging is possible.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
mm/slub.c