Searched refs:counter (Results 1 – 6 of 6) sorted by relevance
/mm/ |
D | page_counter.c | 49 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel() argument 53 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel() 58 atomic_long_set(&counter->usage, new); in page_counter_cancel() 60 propagate_protected_usage(counter, new); in page_counter_cancel() 70 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge() argument 74 for (c = counter; c; c = c->parent) { in page_counter_charge() 97 bool page_counter_try_charge(struct page_counter *counter, in page_counter_try_charge() argument 103 for (c = counter; c; c = c->parent) { in page_counter_try_charge() 142 for (c = counter; c != *fail; c = c->parent) in page_counter_try_charge() 153 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge() argument [all …]
|
D | hugetlb_cgroup.c | 191 struct page_counter *counter; in hugetlb_cgroup_move_parent() local 211 counter = &h_cg->hugepage[idx]; in hugetlb_cgroup_move_parent() 213 page_counter_cancel(counter, nr_pages); in hugetlb_cgroup_move_parent() 260 struct page_counter *counter; in __hugetlb_cgroup_charge_cgroup() local 282 nr_pages, &counter)) { in __hugetlb_cgroup_charge_cgroup() 523 struct page_counter *counter; in hugetlb_cgroup_read_u64() local 527 counter = &h_cg->hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64() 532 return (u64)page_counter_read(counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64() 536 return (u64)counter->max * PAGE_SIZE; in hugetlb_cgroup_read_u64() 540 return (u64)counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64() [all …]
|
D | memcontrol.c | 2701 struct page_counter *counter; in try_charge_memcg() local 2714 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge_memcg() 2715 if (page_counter_try_charge(&memcg->memory, batch, &counter)) in try_charge_memcg() 2719 mem_over_limit = mem_cgroup_from_counter(counter, memory); in try_charge_memcg() 2721 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge_memcg() 3584 struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory; in mem_cgroup_resize_max() local 3604 if (max > counter->max) in mem_cgroup_resize_max() 3606 ret = page_counter_set_max(counter, max); in mem_cgroup_resize_max() 3804 struct page_counter *counter; in mem_cgroup_read_u64() local 3808 counter = &memcg->memory; in mem_cgroup_read_u64() [all …]
|
D | slab.h | 36 unsigned long counter; member
|
D | slub.c | 519 freelist_aba_t old = { .freelist = freelist_old, .counter = counters_old }; in __update_freelist_fast() 520 freelist_aba_t new = { .freelist = freelist_new, .counter = counters_new }; in __update_freelist_fast() 3058 freelist_aba_t old = { .freelist = freelist_old, .counter = tid }; in __update_cpu_freelist_fast() 3059 freelist_aba_t new = { .freelist = freelist_new, .counter = next_tid(tid) }; in __update_cpu_freelist_fast()
|
/mm/kasan/ |
D | kasan_test.c | 650 int counter = 0; in kmalloc_uaf2() local 665 if (!IS_ENABLED(CONFIG_KASAN_GENERIC) && ptr1 == ptr2 && counter++ < 16) { in kmalloc_uaf2()
|