Lines Matching refs:memsw

1324 		count = page_counter_read(&memcg->memsw);  in mem_cgroup_margin()
1325 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1533 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1534 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1562 memsw_max = memcg->memsw.max; in mem_cgroup_get_max()
2202 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2521 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge()
2525 page_counter_uncharge(&memcg->memsw, batch); in try_charge()
2528 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge()
2643 page_counter_charge(&memcg->memsw, nr_pages); in try_charge()
2685 page_counter_uncharge(&memcg->memsw, nr_pages); in cancel_charge()
3017 page_counter_uncharge(&memcg->memsw, nr_pages); in __memcg_kmem_uncharge_memcg()
3105 unsigned long max, bool memsw) in mem_cgroup_resize_max() argument
3111 struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory; in mem_cgroup_resize_max()
3124 limits_invariant = memsw ? max >= memcg->memory.max : in mem_cgroup_resize_max()
3125 max <= memcg->memsw.max; in mem_cgroup_resize_max()
3146 GFP_KERNEL, !memsw)) { in mem_cgroup_resize_max()
3351 val = page_counter_read(&memcg->memsw); in mem_cgroup_usage()
3375 counter = &memcg->memsw; in mem_cgroup_read_u64()
3391 if (counter == &memcg->memsw) in mem_cgroup_read_u64()
3686 counter = &memcg->memsw; in mem_cgroup_reset()
3871 unsigned long memory, memsw; in memcg_stat_show() local
3896 memory = memsw = PAGE_COUNTER_MAX; in memcg_stat_show()
3899 memsw = min(memsw, mi->memsw.max); in memcg_stat_show()
3905 (u64)memsw * PAGE_SIZE); in memcg_stat_show()
5132 page_counter_init(&memcg->memsw, &parent->memsw); in mem_cgroup_css_alloc()
5138 page_counter_init(&memcg->memsw, NULL); in mem_cgroup_css_alloc()
5270 page_counter_set_max(&memcg->memsw, PAGE_COUNTER_MAX); in mem_cgroup_css_reset()
5722 page_counter_uncharge(&mc.from->memsw, mc.moved_swap); in __mem_cgroup_clear_mc()
6637 page_counter_uncharge(&ug->memcg->memsw, nr_pages); in uncharge_batch()
6809 page_counter_charge(&memcg->memsw, nr_pages); in mem_cgroup_migrate()
7044 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
7045 page_counter_uncharge(&memcg->memsw, nr_entries); in mem_cgroup_swapout()
7134 page_counter_uncharge(&memcg->memsw, nr_pages); in mem_cgroup_uncharge_swap()