[PATCH] slab: remove broken PageSlab check from kfree_debugcheck
authorPekka Enberg <penberg@cs.helsinki.fi>
Sat, 10 Feb 2007 09:42:52 +0000 (01:42 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:16 +0000 (10:51 -0800)
commit6e40e73097a5e4ad1b9f92fa21757343fdd6a682
tree63212795f46640de68a75cf10cfc96d5e9e0d365
parent66efc5a7e3061c3597ac43a8bb1026488d57e66b
[PATCH] slab: remove broken PageSlab check from kfree_debugcheck

The PageSlab debug check in kfree_debugcheck() is broken for compound
pages.  It is also redundant as we already do BUG_ON for non-slab pages in
page_get_cache() and page_get_slab() which are always called before we free
any actual objects.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c