Home
last modified time | relevance | path

Searched refs:array_size (Results 1 – 4 of 4) sorted by relevance

/mm/
Dswap_cgroup.c170 unsigned long array_size; in swap_cgroup_swapon() local
175 array_size = length * sizeof(void *); in swap_cgroup_swapon()
177 array = vzalloc(array_size); in swap_cgroup_swapon()
Dsparse.c66 unsigned long array_size = SECTIONS_PER_ROOT * in sparse_index_alloc() local
70 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc()
72 section = memblock_alloc_node(array_size, SMP_CACHE_BYTES, in sparse_index_alloc()
76 __func__, array_size, nid); in sparse_index_alloc()
705 return kvmalloc_node(array_size(sizeof(struct page), in populate_section_memmap()
Dpercpu-stats.c147 buffer = vmalloc(array_size(sizeof(int), (2 * max_nr_alloc + 1))); in percpu_stats_show()
Dvmalloc.c2928 unsigned long array_size; in __vmalloc_area_node() local
2932 array_size = (unsigned long)nr_small_pages * sizeof(struct page *); in __vmalloc_area_node()
2938 if (array_size > PAGE_SIZE) { in __vmalloc_area_node()
2939 area->pages = __vmalloc_node(array_size, 1, nested_gfp, node, in __vmalloc_area_node()
2942 area->pages = kmalloc_node(array_size, nested_gfp, node); in __vmalloc_area_node()
2948 nr_small_pages * PAGE_SIZE, array_size); in __vmalloc_area_node()