Home
last modified time | relevance | path

Searched refs:sheaf (Results 1 – 5 of 5) sorted by relevance

/linux/mm/
H A Dslub.c2747 struct slab_sheaf *sheaf; in __alloc_empty_sheaf() local
2763 sheaf_size = struct_size(sheaf, objects, capacity); in __alloc_empty_sheaf()
2764 sheaf = kzalloc(sheaf_size, gfp); in __alloc_empty_sheaf()
2766 if (unlikely(!sheaf)) in __alloc_empty_sheaf()
2769 sheaf->cache = s; in __alloc_empty_sheaf()
2773 return sheaf; in __alloc_empty_sheaf()
2782 static void free_empty_sheaf(struct kmem_cache *s, struct slab_sheaf *sheaf) in free_empty_sheaf() argument
2791 mark_obj_codetag_empty(sheaf); in free_empty_sheaf()
2793 VM_WARN_ON_ONCE(sheaf->size > 0); in free_empty_sheaf()
2794 kfree(sheaf); in free_empty_sheaf()
[all …]
/linux/tools/include/linux/
H A Dslab.h193 struct slab_sheaf *sheaf);
196 struct slab_sheaf *sheaf);
200 static inline unsigned int kmem_cache_sheaf_size(struct slab_sheaf *sheaf) in kmem_cache_sheaf_size() argument
202 return sheaf->size; in kmem_cache_sheaf_size()
/linux/include/linux/
H A Dslab.h837 struct slab_sheaf *sheaf);
840 struct slab_sheaf *sheaf) __assume_slab_alignment __malloc;
844 unsigned int kmem_cache_sheaf_size(struct slab_sheaf *sheaf);
/linux/lib/
H A Dmaple_tree.c182 static void mt_return_sheaf(struct slab_sheaf *sheaf) in mt_return_sheaf() argument
184 kmem_cache_return_sheaf(maple_node_cache, GFP_NOWAIT, sheaf); in mt_return_sheaf()
192 static int mt_refill_sheaf(gfp_t gfp, struct slab_sheaf **sheaf, in mt_refill_sheaf() argument
195 return kmem_cache_refill_sheaf(maple_node_cache, gfp, sheaf, size); in mt_refill_sheaf()
1083 if (WARN_ON_ONCE(!mas->sheaf)) in mas_pop_node()
1086 ret = kmem_cache_alloc_from_sheaf(maple_node_cache, GFP_NOWAIT, mas->sheaf); in mas_pop_node()
1104 if (mas->sheaf) in mas_alloc_nodes()
1124 if (mas->sheaf) { in mas_alloc_nodes()
1128 if (kmem_cache_sheaf_size(mas->sheaf) >= refill) { in mas_alloc_nodes()
1133 if (mt_refill_sheaf(gfp, &mas->sheaf, refill)) in mas_alloc_nodes()
[all …]
/linux/tools/testing/radix-tree/
H A Dmaple.c35093 if (mas->sheaf) in mas_allocated()
35094 total += kmem_cache_sheaf_size(mas->sheaf); in mas_allocated()