• Home
  • Raw
  • Download

Lines Matching refs:memsw

1468 		count = page_counter_read(&memcg->memsw);  in mem_cgroup_margin()
1469 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1702 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1703 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1733 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
2316 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2734 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge()
2738 page_counter_uncharge(&memcg->memsw, batch); in try_charge()
2741 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge()
2846 page_counter_charge(&memcg->memsw, nr_pages); in try_charge()
2907 page_counter_uncharge(&memcg->memsw, nr_pages); in cancel_charge()
3374 unsigned long max, bool memsw) in mem_cgroup_resize_max() argument
3380 struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory; in mem_cgroup_resize_max()
3393 limits_invariant = memsw ? max >= READ_ONCE(memcg->memory.max) : in mem_cgroup_resize_max()
3394 max <= memcg->memsw.max; in mem_cgroup_resize_max()
3415 GFP_KERNEL, !memsw)) { in mem_cgroup_resize_max()
3620 val = page_counter_read(&memcg->memsw); in mem_cgroup_usage()
3644 counter = &memcg->memsw; in mem_cgroup_read_u64()
3660 if (counter == &memcg->memsw) in mem_cgroup_read_u64()
3932 counter = &memcg->memsw; in mem_cgroup_reset()
4119 unsigned long memory, memsw; in memcg_stat_show() local
4148 memory = memsw = PAGE_COUNTER_MAX; in memcg_stat_show()
4151 memsw = min(memsw, READ_ONCE(mi->memsw.max)); in memcg_stat_show()
4157 (u64)memsw * PAGE_SIZE); in memcg_stat_show()
5993 page_counter_uncharge(&mc.from->memsw, mc.moved_swap); in __mem_cgroup_clear_mc()
6915 page_counter_uncharge(&ug->memcg->memsw, ug->nr_pages); in uncharge_batch()
7068 page_counter_charge(&memcg->memsw, nr_pages); in mem_cgroup_migrate()
7285 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
7286 page_counter_uncharge(&memcg->memsw, nr_entries); in mem_cgroup_swapout()
7370 page_counter_uncharge(&memcg->memsw, nr_pages); in __mem_cgroup_uncharge_swap()