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.c65 unsigned long array_size = SECTIONS_PER_ROOT * in sparse_index_alloc() local
69 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc()
71 section = memblock_alloc_node(array_size, SMP_CACHE_BYTES, in sparse_index_alloc()
75 __func__, array_size, nid); in sparse_index_alloc()
725 return kvmalloc_node(array_size(sizeof(struct page), in populate_section_memmap()
Dpercpu-stats.c156 buffer = vmalloc(array_size(sizeof(int), (2 * max_nr_alloc + 1))); in percpu_stats_show()
Dvmalloc.c2480 unsigned int array_size = nr_pages * sizeof(struct page *), i; in __vmalloc_area_node() local
2488 if (array_size > PAGE_SIZE) { in __vmalloc_area_node()
2489 pages = __vmalloc_node(array_size, 1, nested_gfp, node, in __vmalloc_area_node()
2492 pages = kmalloc_node(array_size, nested_gfp, node); in __vmalloc_area_node()