Re: [PATCH] Fix 2.5.3pre reiserfs BUG() at boot time

John Levon
2002-01-25T17:59:31Z

On Fri, Jan 25, 2002 at 06:28:08PM +0100, Andi Kleen wrote:

> kmem_cache_create() ("reiserfs_inode_cache") but kmem_cache_create()
> only allows 19 character names and BUG()s for longer names.

please apply this too then.

regards
john

--- mm/slab.c.old Fri Jan 25 17:54:11 2002
+++ mm/slab.c Fri Jan 25 17:55:18 2002
@@ -599,7 +599,10 @@
* @dtor: A destructor for the objects.
*
* Returns a ptr to the cache on success, NULL on failure.
- * Cannot be called within a int, but can be interrupted.
+ * Cannot be called within a interrupt, but can be interrupted.
+ *
+ * strlen(@name) must be less than %CACHE_NAMELEN.
+ *
* The @ctor is run when new pages are allocated by the cache
* and the @dtor is run before the pages are handed back.
* The flags are