Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 6 of 6) sorted by relevance

/mm/
Dpage_counter.c17 unsigned long usage) in propagate_protected_usage() argument
26 if (usage <= c->min) in propagate_protected_usage()
27 protected = usage; in propagate_protected_usage()
38 if (usage <= c->low) in propagate_protected_usage()
39 protected = usage; in propagate_protected_usage()
59 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel()
79 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge()
121 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
123 atomic_long_sub(nr_pages, &c->usage); in page_counter_try_charge()
177 long usage; in page_counter_set_max() local
[all …]
Dsparse.c246 subsection_mask_set(ms->usage->subsection_map, pfn, pfns); in subsection_map_init()
335 struct mem_section_usage *usage, unsigned long flags) in sparse_init_one_section() argument
340 ms->usage = usage; in sparse_init_one_section()
358 struct mem_section_usage *usage; in sparse_early_usemaps_alloc_pgdat_section() local
375 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()
376 if (!usage && limit) { in sparse_early_usemaps_alloc_pgdat_section()
380 return usage; in sparse_early_usemaps_alloc_pgdat_section()
384 struct mem_section_usage *usage) in check_usemap_section_nr() argument
398 usemap_snr = pfn_to_section_nr(__pa(usage) >> PAGE_SHIFT); in check_usemap_section_nr()
434 struct mem_section_usage *usage) in check_usemap_section_nr() argument
[all …]
Dmemory_hotplug.c171 struct mem_section_usage *usage; in register_page_bootmem_info_section() local
191 usage = ms->usage; in register_page_bootmem_info_section()
192 page = virt_to_page(usage); in register_page_bootmem_info_section()
206 struct mem_section_usage *usage; in register_page_bootmem_info_section() local
215 usage = ms->usage; in register_page_bootmem_info_section()
216 page = virt_to_page(usage); in register_page_bootmem_info_section()
Dswapfile.c733 unsigned char usage, int nr, in scan_swap_map_slots() argument
846 si->swap_map[offset] = usage; in scan_swap_map_slots()
978 unsigned char usage) in scan_swap_map() argument
983 n_ret = scan_swap_map_slots(si, usage, 1, &entry); in scan_swap_map()
1179 unsigned char usage) in __swap_entry_free_locked() argument
1189 if (usage == SWAP_HAS_CACHE) { in __swap_entry_free_locked()
1208 usage = count | has_cache; in __swap_entry_free_locked()
1209 p->swap_map[offset] = usage ? : SWAP_HAS_CACHE; in __swap_entry_free_locked()
1211 return usage; in __swap_entry_free_locked()
1278 swp_entry_t entry, unsigned char usage) in __swap_entry_free() argument
[all …]
Dmemcontrol.c2420 unsigned long usage, high, clamped_high; in mem_cgroup_handle_over_high() local
2445 usage = page_counter_read(&memcg->memory); in mem_cgroup_handle_over_high()
2448 if (usage <= high) in mem_cgroup_handle_over_high()
2457 overage = div_u64((u64)(usage - high) << MEMCG_DELAY_PRECISION_SHIFT, in mem_cgroup_handle_over_high()
3959 unsigned long usage; in __mem_cgroup_threshold() local
3971 usage = mem_cgroup_usage(memcg, swap); in __mem_cgroup_threshold()
3986 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--) in __mem_cgroup_threshold()
3998 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++) in __mem_cgroup_threshold()
4059 unsigned long usage; in __mem_cgroup_usage_register_event() local
4070 usage = mem_cgroup_usage(memcg, false); in __mem_cgroup_usage_register_event()
[all …]
DKconfig702 be used to help understand percpu memory usage.