Lines Matching refs:memsw
1465 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1466 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1699 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1700 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1730 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
2313 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2731 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge()
2735 page_counter_uncharge(&memcg->memsw, batch); in try_charge()
2738 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge()
2843 page_counter_charge(&memcg->memsw, nr_pages); in try_charge()
2904 page_counter_uncharge(&memcg->memsw, nr_pages); in cancel_charge()
3370 unsigned long max, bool memsw) in mem_cgroup_resize_max() argument
3376 struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory; in mem_cgroup_resize_max()
3389 limits_invariant = memsw ? max >= READ_ONCE(memcg->memory.max) : in mem_cgroup_resize_max()
3390 max <= memcg->memsw.max; in mem_cgroup_resize_max()
3411 GFP_KERNEL, !memsw)) { in mem_cgroup_resize_max()
3616 val = page_counter_read(&memcg->memsw); in mem_cgroup_usage()
3640 counter = &memcg->memsw; in mem_cgroup_read_u64()
3656 if (counter == &memcg->memsw) in mem_cgroup_read_u64()
3928 counter = &memcg->memsw; in mem_cgroup_reset()
4111 unsigned long memory, memsw; in memcg_stat_show() local
4140 memory = memsw = PAGE_COUNTER_MAX; in memcg_stat_show()
4143 memsw = min(memsw, READ_ONCE(mi->memsw.max)); in memcg_stat_show()
4149 (u64)memsw * PAGE_SIZE); in memcg_stat_show()
5985 page_counter_uncharge(&mc.from->memsw, mc.moved_swap); in __mem_cgroup_clear_mc()
6907 page_counter_uncharge(&ug->memcg->memsw, ug->nr_pages); in uncharge_batch()
7060 page_counter_charge(&memcg->memsw, nr_pages); in mem_cgroup_migrate()
7277 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
7278 page_counter_uncharge(&memcg->memsw, nr_entries); in mem_cgroup_swapout()
7362 page_counter_uncharge(&memcg->memsw, nr_pages); in __mem_cgroup_uncharge_swap()