mm/slub: Add debugging to verify correct cache use on kmem_cache_free()
authorChristoph Lameter <cl@linux.com>
Tue, 4 Sep 2012 23:06:14 +0000 (23:06 +0000)
committerPekka Enberg <penberg@kernel.org>
Wed, 5 Sep 2012 09:00:35 +0000 (12:00 +0300)
commit79576102afc24fcc6627d7a15691e432d9a2eacb
treedf44371aad955bc889f8d72b32b754ac1592ed60
parente21827aadd77e33833eeb393de2e8675e9b399e2
mm/slub: Add debugging to verify correct cache use on kmem_cache_free()

Add additional debugging to check that the objects is actually from the cache
the caller claims. Doing so currently trips up some other debugging code. It
takes a lot to infer from that what was happening.

Reviewed-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
[ penberg@kernel.org: Use pr_err() ]
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c