]> git.baikalelectronics.ru Git - kernel.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)
commita7174c5ce28c8ae2ddf012e80b64e30839600ba0
treea3f7c40fbcaef54b0dce0affc8cadf101ace046d
parent39a4f4bd15a4f1675c254a27b14f172197742f13
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