Lines Matching refs:memsw
1304 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1305 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1544 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1545 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1575 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
2168 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2549 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge_memcg()
2553 page_counter_uncharge(&memcg->memsw, batch); in try_charge_memcg()
2556 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge_memcg()
2658 page_counter_charge(&memcg->memsw, nr_pages); in try_charge_memcg()
2727 page_counter_uncharge(&memcg->memsw, nr_pages); in cancel_charge()
3350 unsigned long max, bool memsw) in mem_cgroup_resize_max() argument
3356 struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory; in mem_cgroup_resize_max()
3369 limits_invariant = memsw ? max >= READ_ONCE(memcg->memory.max) : in mem_cgroup_resize_max()
3370 max <= memcg->memsw.max; in mem_cgroup_resize_max()
3391 GFP_KERNEL, !memsw)) { in mem_cgroup_resize_max()
3556 val = page_counter_read(&memcg->memsw); in mem_cgroup_usage()
3580 counter = &memcg->memsw; in mem_cgroup_read_u64()
3596 if (counter == &memcg->memsw) in mem_cgroup_read_u64()
3772 counter = &memcg->memsw; in mem_cgroup_reset()
3957 unsigned long memory, memsw; in memcg_stat_show() local
3984 memory = memsw = PAGE_COUNTER_MAX; in memcg_stat_show()
3987 memsw = min(memsw, READ_ONCE(mi->memsw.max)); in memcg_stat_show()
3993 (u64)memsw * PAGE_SIZE); in memcg_stat_show()
5852 page_counter_uncharge(&mc.from->memsw, mc.moved_swap); in __mem_cgroup_clear_mc()
6782 page_counter_uncharge(&ug->memcg->memsw, ug->nr_memory); in uncharge_batch()
6927 page_counter_charge(&memcg->memsw, nr_pages); in mem_cgroup_migrate()
7151 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
7152 page_counter_uncharge(&memcg->memsw, nr_entries); in mem_cgroup_swapout()
7236 page_counter_uncharge(&memcg->memsw, nr_pages); in __mem_cgroup_uncharge_swap()