Home
last modified time | relevance | path

Searched refs:nr_objs (Results 1 – 2 of 2) sorted by relevance

/mm/
Dslab.c799 static size_t slab_mgmt_size(size_t nr_objs, size_t align) in slab_mgmt_size() argument
801 return ALIGN(sizeof(struct slab)+nr_objs*sizeof(kmem_bufctl_t), align); in slab_mgmt_size()
811 int nr_objs; in cache_estimate() local
832 nr_objs = slab_size / buffer_size; in cache_estimate()
834 if (nr_objs > SLAB_LIMIT) in cache_estimate()
835 nr_objs = SLAB_LIMIT; in cache_estimate()
845 nr_objs = (slab_size - sizeof(struct slab)) / in cache_estimate()
852 if (slab_mgmt_size(nr_objs, align) + nr_objs*buffer_size in cache_estimate()
854 nr_objs--; in cache_estimate()
856 if (nr_objs > SLAB_LIMIT) in cache_estimate()
[all …]
Dslub.c4478 unsigned long nr_objs = 0; in s_show() local
4493 nr_objs += atomic_long_read(&n->total_objects); in s_show()
4497 nr_inuse = nr_objs - nr_free; in s_show()
4500 nr_objs, s->size, oo_objects(s->oo), in s_show()