Skip to content

Commit

Permalink
mm/slab: remove useless structure define
Browse files Browse the repository at this point in the history
It is obsolete so remove it.

Signed-off-by: Joonsoo Kim <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JoonsooKim authored and torvalds committed Mar 15, 2016
1 parent 12c61fe commit 6fb9243
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6fb9243

Please sign in to comment.