]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
slub: improve kmem_cache_destroy() error message
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 23 Apr 2008 19:31:08 +0000 (22:31 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sun, 27 Apr 2008 15:26:06 +0000 (18:26 +0300)
commitd629d819579327267884a12de21ef6d4b539db88
treea3f7c40fbcaef54b0dce0affc8cadf101ace046d
parent0701a9e649bf0ffdac0a761d3c3d1041f5375d90
slub: improve kmem_cache_destroy() error message

As pointed out by Ingo, the SLUB warning of calling kmem_cache_destroy()
with cache that still has objects triggers in practice. So turn this
WARN_ON() into a nice SLUB specific error message to avoid people
confusing it to a SLUB bug.

Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c