]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
SLOB has no node specific management structures.
authorChristoph Lameter <cl@gentwo.org>
Thu, 26 Jun 2014 00:42:25 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:25 +0000 (10:42 +1000)
Do not provide the defintions for node management structures for SLOB.

Signed-off-by: Christoph Lameter <cl@linux.com>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slab.h

index 3cf6a35e7e9a23e8df2d5e40b43f2d9ef7daa51d..3f9766e393a3b9b83ca01d5908ba25428e736415 100644 (file)
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -262,7 +262,7 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x)
 }
 #endif
 
-
+#ifndef CONFIG_SLOB
 /*
  * The slab lists for all objects.
  */
@@ -307,5 +307,7 @@ static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node)
        for (__node = 0; __n = get_node(__s, __node), __node < nr_node_ids; __node++) \
                 if (__n)
 
+#endif
+
 void *slab_next(struct seq_file *m, void *p, loff_t *pos);
 void slab_stop(struct seq_file *m, void *p);