Lines Matching refs:memsw
1436 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1437 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1670 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1671 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1701 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
2284 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2701 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge()
2705 page_counter_uncharge(&memcg->memsw, batch); in try_charge()
2708 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge()
2825 page_counter_charge(&memcg->memsw, nr_pages); in try_charge()
2886 page_counter_uncharge(&memcg->memsw, nr_pages); in cancel_charge()
3087 page_counter_uncharge(&memcg->memsw, nr_pages); in __memcg_kmem_uncharge()
3336 unsigned long max, bool memsw) in mem_cgroup_resize_max() argument
3342 struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory; in mem_cgroup_resize_max()
3355 limits_invariant = memsw ? max >= READ_ONCE(memcg->memory.max) : in mem_cgroup_resize_max()
3356 max <= memcg->memsw.max; in mem_cgroup_resize_max()
3377 GFP_KERNEL, !memsw)) { in mem_cgroup_resize_max()
3582 val = page_counter_read(&memcg->memsw); in mem_cgroup_usage()
3606 counter = &memcg->memsw; in mem_cgroup_read_u64()
3622 if (counter == &memcg->memsw) in mem_cgroup_read_u64()
3894 counter = &memcg->memsw; in mem_cgroup_reset()
4077 unsigned long memory, memsw; in memcg_stat_show() local
4106 memory = memsw = PAGE_COUNTER_MAX; in memcg_stat_show()
4109 memsw = min(memsw, READ_ONCE(mi->memsw.max)); in memcg_stat_show()
4115 (u64)memsw * PAGE_SIZE); in memcg_stat_show()
5936 page_counter_uncharge(&mc.from->memsw, mc.moved_swap); in __mem_cgroup_clear_mc()
6849 page_counter_uncharge(&ug->memcg->memsw, ug->nr_pages); in uncharge_batch()
7008 page_counter_charge(&memcg->memsw, nr_pages); in mem_cgroup_migrate()
7222 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
7223 page_counter_uncharge(&memcg->memsw, nr_entries); in mem_cgroup_swapout()
7307 page_counter_uncharge(&memcg->memsw, nr_pages); in mem_cgroup_uncharge_swap()