Home
last modified time | relevance | path

Searched refs:c (Results 1 – 7 of 7) sorted by relevance

/mm/
Dslob.c525 int __kmem_cache_create(struct kmem_cache *c, unsigned long flags) in __kmem_cache_create() argument
529 c->size += sizeof(struct slob_rcu); in __kmem_cache_create()
531 c->flags = flags; in __kmem_cache_create()
535 void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node) in slob_alloc_node() argument
543 if (c->size < PAGE_SIZE) { in slob_alloc_node()
544 b = slob_alloc(c->size, flags, c->align, node); in slob_alloc_node()
545 trace_kmem_cache_alloc_node(_RET_IP_, b, c->object_size, in slob_alloc_node()
546 SLOB_UNITS(c->size) * SLOB_UNIT, in slob_alloc_node()
549 b = slob_new_pages(flags, get_order(c->size), node); in slob_alloc_node()
550 trace_kmem_cache_alloc_node(_RET_IP_, b, c->object_size, in slob_alloc_node()
[all …]
Dslub.c1613 struct kmem_cache_cpu *c, gfp_t flags) in get_partial_node() argument
1642 c->page = page; in get_partial_node()
1662 struct kmem_cache_cpu *c) in get_any_partial() argument
1704 object = get_partial_node(s, n, c, flags); in get_any_partial()
1726 struct kmem_cache_cpu *c) in get_partial() argument
1736 object = get_partial_node(s, get_node(s, searchnode), c, flags); in get_partial()
1740 return get_any_partial(s, flags, c); in get_partial()
1963 struct kmem_cache_cpu *c) in unfreeze_partials() argument
1969 while ((page = c->partial)) { in unfreeze_partials()
1973 c->partial = page->next; in unfreeze_partials()
[all …]
Dslab_common.c861 struct kmem_cache *c; in memcg_accumulate_slabinfo() local
869 c = cache_from_memcg_idx(s, i); in memcg_accumulate_slabinfo()
870 if (!c) in memcg_accumulate_slabinfo()
874 get_slabinfo(c, &sinfo); in memcg_accumulate_slabinfo()
Dslab.c3560 struct kmem_cache *c; in kfree() local
3569 c = virt_to_cache(objp); in kfree()
3570 debug_check_no_locks_freed(objp, c->object_size); in kfree()
3572 debug_check_no_obj_freed(objp, c->object_size); in kfree()
3573 __cache_free(c, (void *)objp, _RET_IP_); in kfree()
3713 struct kmem_cache *c = NULL; in do_tune_cpucache() local
3726 c = cache_from_memcg_idx(cachep, i); in do_tune_cpucache()
3727 if (c) in do_tune_cpucache()
3729 __do_tune_cpucache(c, limit, batchcount, shared, gfp); in do_tune_cpucache()
4089 static void handle_slab(unsigned long *n, struct kmem_cache *c, in handle_slab() argument
[all …]
Dmempolicy.c1784 int c; in offset_il_node() local
1790 c = 0; in offset_il_node()
1793 c++; in offset_il_node()
1794 } while (c <= target); in offset_il_node()
Dswapfile.c211 unsigned int c) in cluster_set_count() argument
213 info->data = c; in cluster_set_count()
217 unsigned int c, unsigned int f) in cluster_set_count_flag() argument
220 info->data = c; in cluster_set_count_flag()
Dmemcontrol.c3028 struct kmem_cache *c; in __memcg_cleanup_cache_params() local
3033 c = cache_from_memcg_idx(s, i); in __memcg_cleanup_cache_params()
3034 if (!c) in __memcg_cleanup_cache_params()
3037 memcg_unregister_cache(c); in __memcg_cleanup_cache_params()