SLAB: remove WARN_ON_ONCE for zero sized objects for 2.6.22 release
authorChristoph Lameter <[email protected]>
Sun, 1 Jul 2007 19:06:35 +0000 (12:06 -0700)
committerLinus Torvalds <[email protected]>
Sun, 1 Jul 2007 19:29:43 +0000 (12:29 -0700)
We agreed to remove the WARN_ON_ONCE before 2.6.22 is released.

Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab.c

index 6d65cf4e4b2e03fb1cbd860a1932ce0cd5cb2621..a9c4472e92041e0fbeba9d9cc0a271f9e18c4a95 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -774,7 +774,6 @@ static inline struct kmem_cache *__find_general_cachep(size_t size,
         */
        BUG_ON(malloc_sizes[INDEX_AC].cs_cachep == NULL);
 #endif
-       WARN_ON_ONCE(size == 0);
        while (size > csizep->cs_size)
                csizep++;