diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1886,6 +1886,9 @@ static void init_kmem_cache_cpu(struct kmem_cache *s, | |||
1886 | c->node = 0; | 1886 | c->node = 0; |
1887 | c->offset = s->offset / sizeof(void *); | 1887 | c->offset = s->offset / sizeof(void *); |
1888 | c->objsize = s->objsize; | 1888 | c->objsize = s->objsize; |
1889 | #ifdef CONFIG_SLUB_STATS | ||
1890 | memset(c->stat, 0, NR_SLUB_STAT_ITEMS * sizeof(unsigned)); | ||
1891 | #endif | ||
1889 | } | 1892 | } |
1890 | 1893 | ||
1891 | static void init_kmem_cache_node(struct kmem_cache_node *n) | 1894 | static void init_kmem_cache_node(struct kmem_cache_node *n) |