Lines Matching refs:memsw
1300 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1301 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1534 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1535 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1560 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
1766 page_counter_uncharge(&old->memsw, stock_pages); in drain_stock()
2172 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge_memcg()
2176 page_counter_uncharge(&memcg->memsw, batch); in try_charge_memcg()
2179 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge_memcg()
2285 page_counter_charge(&memcg->memsw, nr_pages); in try_charge_memcg()
2361 page_counter_uncharge(&memcg->memsw, nr_pages); in mem_cgroup_cancel_charge()
3056 val = page_counter_read(&memcg->memsw); in mem_cgroup_usage()
4611 page_counter_uncharge(&ug->memcg->memsw, ug->nr_memory); in uncharge_batch()
4749 page_counter_charge(&memcg->memsw, nr_pages); in mem_cgroup_replace_folio()
4986 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
4987 page_counter_uncharge(&memcg->memsw, nr_entries); in mem_cgroup_swapout()
5060 page_counter_uncharge(&memcg->memsw, nr_pages); in __mem_cgroup_uncharge_swap()