• Home
  • Raw
  • Download

Lines Matching refs:memsw

1350 		count = page_counter_read(&memcg->memsw);  in mem_cgroup_margin()
1351 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1591 K((u64)page_counter_read(&memcg->memsw)), in mem_cgroup_print_oom_meminfo()
1592 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1622 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
2241 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2623 page_counter_try_charge(&memcg->memsw, batch, &counter)) { in try_charge_memcg()
2627 page_counter_uncharge(&memcg->memsw, batch); in try_charge_memcg()
2630 mem_over_limit = mem_cgroup_from_counter(counter, memsw); in try_charge_memcg()
2732 page_counter_charge(&memcg->memsw, nr_pages); in try_charge_memcg()
2802 page_counter_uncharge(&memcg->memsw, nr_pages); in cancel_charge()
3387 unsigned long max, bool memsw) in mem_cgroup_resize_max() argument
3393 struct page_counter *counter = memsw ? &memcg->memsw : &memcg->memory; in mem_cgroup_resize_max()
3406 limits_invariant = memsw ? max >= READ_ONCE(memcg->memory.max) : in mem_cgroup_resize_max()
3407 max <= memcg->memsw.max; in mem_cgroup_resize_max()
3428 memsw ? 0 : MEMCG_RECLAIM_MAY_SWAP)) { in mem_cgroup_resize_max()
3604 val = page_counter_read(&memcg->memsw); in mem_cgroup_usage()
3628 counter = &memcg->memsw; in mem_cgroup_read_u64()
3644 if (counter == &memcg->memsw) in mem_cgroup_read_u64()
3857 counter = &memcg->memsw; in mem_cgroup_reset()
4046 unsigned long memory, memsw; in memcg_stat_show() local
4073 memory = memsw = PAGE_COUNTER_MAX; in memcg_stat_show()
4076 memsw = min(memsw, READ_ONCE(mi->memsw.max)); in memcg_stat_show()
4082 (u64)memsw * PAGE_SIZE); in memcg_stat_show()
5961 page_counter_uncharge(&mc.from->memsw, mc.moved_swap); in __mem_cgroup_clear_mc()
6978 page_counter_uncharge(&ug->memcg->memsw, ug->nr_memory); in uncharge_batch()
7132 page_counter_charge(&memcg->memsw, nr_pages); in mem_cgroup_migrate()
7356 page_counter_charge(&swap_memcg->memsw, nr_entries); in mem_cgroup_swapout()
7357 page_counter_uncharge(&memcg->memsw, nr_entries); in mem_cgroup_swapout()
7441 page_counter_uncharge(&memcg->memsw, nr_pages); in __mem_cgroup_uncharge_swap()