Home
last modified time | relevance | path

Searched refs:nr_entries (Results 1 – 10 of 10) sorted by relevance

/mm/
Dpage_owner.c64 unsigned int nr_entries; in create_dummy_stack() local
66 nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 0); in create_dummy_stack()
67 return stack_depot_save(entries, nr_entries, GFP_KERNEL); in create_dummy_stack()
129 unsigned int nr_entries, in check_recursive_alloc() argument
134 for (i = 0; i < nr_entries; i++) { in check_recursive_alloc()
145 unsigned int nr_entries; in save_stack() local
147 nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 2); in save_stack()
157 if (check_recursive_alloc(entries, nr_entries, _RET_IP_)) in save_stack()
160 handle = stack_depot_save(entries, nr_entries, flags); in save_stack()
393 unsigned int nr_entries; in print_page_owner() local
[all …]
Dpage_pinner.c82 unsigned int nr_entries; in register_failure_stack() local
84 nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 0); in register_failure_stack()
85 failure_handle = stack_depot_save(entries, nr_entries, GFP_KERNEL); in register_failure_stack()
112 unsigned int nr_entries; in save_stack() local
114 nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 2); in save_stack()
115 handle = stack_depot_save(entries, nr_entries, flags); in save_stack()
228 unsigned int nr_entries; in print_page_pinner() local
263 nr_entries = stack_depot_fetch(record->handle, &entries); in print_page_pinner()
265 nr_entries, 0); in print_page_pinner()
290 unsigned int nr_entries; in __dump_page_pinner() local
[all …]
Dswapfile.c690 unsigned int nr_entries) in swap_range_alloc() argument
692 unsigned int end = offset + nr_entries - 1; in swap_range_alloc()
695 si->lowest_bit += nr_entries; in swap_range_alloc()
697 WRITE_ONCE(si->highest_bit, si->highest_bit - nr_entries); in swap_range_alloc()
698 si->inuse_pages += nr_entries; in swap_range_alloc()
724 unsigned int nr_entries) in swap_range_free() argument
727 unsigned long end = offset + nr_entries - 1; in swap_range_free()
742 atomic_long_add(nr_entries, &nr_swap_pages); in swap_range_free()
743 si->inuse_pages -= nr_entries; in swap_range_free()
Dswap.c1229 pgoff_t start, unsigned nr_entries, in pagevec_lookup_entries() argument
1232 pvec->nr = find_get_entries(mapping, start, nr_entries, in pagevec_lookup_entries()
Dmemcontrol.c7245 unsigned int nr_entries; in mem_cgroup_swapout() local
7269 nr_entries = thp_nr_pages(page); in mem_cgroup_swapout()
7271 if (nr_entries > 1) in mem_cgroup_swapout()
7272 mem_cgroup_id_get_many(swap_memcg, nr_entries - 1); in mem_cgroup_swapout()
7274 nr_entries); in mem_cgroup_swapout()
7276 mod_memcg_state(swap_memcg, MEMCG_SWAP, nr_entries); in mem_cgroup_swapout()
7281 page_counter_uncharge(&memcg->memory, nr_entries); in mem_cgroup_swapout()
7285 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
7286 page_counter_uncharge(&memcg->memsw, nr_entries); in mem_cgroup_swapout()
7296 mem_cgroup_charge_statistics(memcg, page, -nr_entries); in mem_cgroup_swapout()
Dshmem.c1200 pgoff_t start, unsigned int nr_entries, in shmem_find_swap_entries() argument
1209 if (!nr_entries) in shmem_find_swap_entries()
1234 if (++ret == nr_entries) in shmem_find_swap_entries()
1290 unsigned int nr_entries = PAGEVEC_SIZE; in shmem_unuse_inode() local
1293 nr_entries = *fs_pages_to_unuse; in shmem_unuse_inode()
1295 pvec.nr = shmem_find_swap_entries(mapping, start, nr_entries, in shmem_unuse_inode()
Dfilemap.c1907 pgoff_t start, unsigned int nr_entries, in find_get_entries() argument
1914 if (!nr_entries) in find_get_entries()
1942 nr_entries = ret + 1; in find_get_entries()
1947 if (++ret == nr_entries) in find_get_entries()
Dslub.c621 unsigned int nr_entries; in set_track() local
624 nr_entries = stack_trace_save(kasan_reset_tag(p->addrs), in set_track()
628 if (nr_entries < TRACK_ADDRS_COUNT) in set_track()
629 p->addrs[nr_entries] = 0; in set_track()
/mm/kasan/
Dcommon.c36 unsigned int nr_entries; in kasan_save_stack() local
38 nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 0); in kasan_save_stack()
39 nr_entries = filter_irq_stacks(entries, nr_entries); in kasan_save_stack()
40 return stack_depot_save(entries, nr_entries, flags); in kasan_save_stack()
Dreport.c107 unsigned int nr_entries; in print_stack() local
109 nr_entries = stack_depot_fetch(stack, &entries); in print_stack()
110 stack_trace_print(entries, nr_entries, 0); in print_stack()