From: Joonsoo Kim Date: Tue, 15 Mar 2016 21:54:09 +0000 (-0700) Subject: mm/slab: remove useless structure define X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fb924304ac35f1ab9f3abe73527efcd5156131f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm/slab: remove useless structure define It is obsolete so remove it. Signed-off-by: Joonsoo Kim Acked-by: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Cc: Jesper Dangaard Brouer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slab.c b/mm/slab.c index 23fc4b00d0ce..3634dc1a32ef 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -224,16 +224,6 @@ static inline void clear_obj_pfmemalloc(void **objp) *objp = (void *)((unsigned long)*objp & ~SLAB_OBJ_PFMEMALLOC); } -/* - * bootstrap: The caches do not work without cpuarrays anymore, but the - * cpuarrays are allocated from the generic caches... - */ -#define BOOT_CPUCACHE_ENTRIES 1 -struct arraycache_init { - struct array_cache cache; - void *entries[BOOT_CPUCACHE_ENTRIES]; -}; - /* * Need this for bootstrapping a per node allocator. */ @@ -457,6 +447,7 @@ static inline unsigned int obj_to_index(const struct kmem_cache *cache, return reciprocal_divide(offset, cache->reciprocal_buffer_size); } +#define BOOT_CPUCACHE_ENTRIES 1 /* internal cache of cache description objs */ static struct kmem_cache kmem_cache_boot = { .batchcount = 1,