]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] tiny kmem_cache_destroy doc tweak
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Dec 2002 13:54:28 +0000 (05:54 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 5 Dec 2002 13:54:28 +0000 (05:54 -0800)
From:  John Levon <levon@movementarian.org>

  Make it clear that _destroy() won't do the kmem_cache_free()s for you

mm/slab.c

index 30a2f508325577d637ab11f148d1ebd66767bc09..cc41d0939a3da88e9a509d97afa3fbf78334dbc4 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1191,6 +1191,8 @@ int kmem_cache_shrink(kmem_cache_t *cachep)
  * cache being allocated each time a module is loaded and unloaded, if the
  * module doesn't have persistent in-kernel storage across loads and unloads.
  *
+ * The cache must be empty before calling this function.
+ *
  * The caller must guarantee that noone will allocate memory from the cache
  * during the kmem_cache_destroy().
  */