Lines Matching refs:kmalloc_caches
2073 if (s < kmalloc_caches + KMALLOC_CACHES && s >= kmalloc_caches)
2078 s->cpu_slab = kmalloc_percpu + (s - kmalloc_caches);
2104 BUG_ON(kmalloc_caches->size < sizeof(struct kmem_cache_node));
2106 page = new_slab(kmalloc_caches, gfpflags, node);
2118 page->freelist = get_freepointer(kmalloc_caches, n);
2120 kmalloc_caches->node[node] = n;
2122 init_object(kmalloc_caches, n, 1);
2123 init_tracking(kmalloc_caches, n);
2125 init_kmem_cache_node(n, kmalloc_caches);
2126 inc_slabs_node(kmalloc_caches, node, page->objects);
2145 kmem_cache_free(kmalloc_caches, n);
2161 n = kmem_cache_alloc_node(kmalloc_caches,
2514 struct kmem_cache kmalloc_caches[KMALLOC_CACHES] __cacheline_aligned;
2515 EXPORT_SYMBOL(kmalloc_caches);
2621 realsize = kmalloc_caches[index].objsize;
2627 if (!kmalloc_caches[i].size)
2631 s = kmalloc_caches + i;
2718 return &kmalloc_caches[index];
2963 kmem_cache_free(kmalloc_caches, n);
2991 n = kmem_cache_alloc(kmalloc_caches, GFP_KERNEL);
3048 create_kmalloc_cache(&kmalloc_caches[0], "kmem_cache_node",
3050 kmalloc_caches[0].refcount = -1;
3061 create_kmalloc_cache(&kmalloc_caches[1],
3066 create_kmalloc_cache(&kmalloc_caches[2],
3072 create_kmalloc_cache(&kmalloc_caches[i],
3123 kmalloc_caches[i].name = s;
3465 validate_slab_cache(kmalloc_caches + 4);
3475 validate_slab_cache(kmalloc_caches + 5);
3483 validate_slab_cache(kmalloc_caches + 6);
3490 validate_slab_cache(kmalloc_caches + 7);
3497 validate_slab_cache(kmalloc_caches + 8);
3503 validate_slab_cache(kmalloc_caches + 9);