From: Christoph Lameter Date: Thu, 26 Jun 2014 00:42:25 +0000 (+1000) Subject: SLOB has no node specific management structures. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=368b938abcab4d4f78433d56dc0170cbf2c2e136;p=karo-tx-linux.git SLOB has no node specific management structures. Do not provide the defintions for node management structures for SLOB. Signed-off-by: Christoph Lameter Reported-by: Wu Fengguang Signed-off-by: Andrew Morton --- diff --git a/mm/slab.h b/mm/slab.h index 3cf6a35e7e9a..3f9766e393a3 100644 --- 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);