]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/slab.c
[JFFS2] Fix summary handling of unknown but compatible nodes.
[linux-2.6-omap-h63xx.git] / mm / slab.c
index c32af7e7581ef0ff11ef112f94b6a84da50cafc4..b1d643b5238de2f74ab3911d2bab4479c8745385 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -700,6 +700,14 @@ static enum {
        FULL
 } g_cpucache_up;
 
+/*
+ * used by boot code to determine if it can use slab based allocator
+ */
+int slab_is_available(void)
+{
+       return g_cpucache_up == FULL;
+}
+
 static DEFINE_PER_CPU(struct work_struct, reap_work);
 
 static void free_block(struct kmem_cache *cachep, void **objpp, int len,