• Home
  • Raw
  • Download

Lines Matching refs:from

185 	struct mem_cgroup *from;  member
1265 static void __invalidate_reclaim_iterators(struct mem_cgroup *from, in __invalidate_reclaim_iterators() argument
1273 mz = mem_cgroup_nodeinfo(from, nid); in __invalidate_reclaim_iterators()
1488 struct mem_cgroup *from; in mem_cgroup_under_move() local
1496 from = mc.from; in mem_cgroup_under_move()
1498 if (!from) in mem_cgroup_under_move()
1501 ret = mem_cgroup_is_descendant(from, memcg) || in mem_cgroup_under_move()
3349 struct mem_cgroup *from, struct mem_cgroup *to) in mem_cgroup_move_swap_account() argument
3353 old_id = mem_cgroup_id(from); in mem_cgroup_move_swap_account()
3357 mod_memcg_state(from, MEMCG_SWAP, -1); in mem_cgroup_move_swap_account()
3365 struct mem_cgroup *from, struct mem_cgroup *to) in mem_cgroup_move_swap_account() argument
5694 struct mem_cgroup *from, in mem_cgroup_move_account() argument
5702 VM_BUG_ON(from == to); in mem_cgroup_move_account()
5715 if (page->mem_cgroup != from) in mem_cgroup_move_account()
5719 from_vec = mem_cgroup_lruvec(from, pgdat); in mem_cgroup_move_account()
5781 css_put(&from->css); in mem_cgroup_move_account()
5785 __unlock_page_memcg(from); in mem_cgroup_move_account()
5792 mem_cgroup_charge_statistics(from, page, -nr_pages); in mem_cgroup_move_account()
5793 memcg_check_events(from, page); in mem_cgroup_move_account()
5849 if (page->mem_cgroup == mc.from) { in get_mctgt_type()
5864 mem_cgroup_id(mc.from) == lookup_swap_cgroup_id(ent)) { in get_mctgt_type()
5893 if (page->mem_cgroup == mc.from) { in get_mctgt_type_thp()
5973 struct mem_cgroup *from = mc.from; in __mem_cgroup_clear_mc() local
5986 cancel_charge(mc.from, mc.moved_charge); in __mem_cgroup_clear_mc()
5992 if (!mem_cgroup_is_root(mc.from)) in __mem_cgroup_clear_mc()
5993 page_counter_uncharge(&mc.from->memsw, mc.moved_swap); in __mem_cgroup_clear_mc()
5995 mem_cgroup_id_put_many(mc.from, mc.moved_swap); in __mem_cgroup_clear_mc()
6006 memcg_oom_recover(from); in __mem_cgroup_clear_mc()
6022 mc.from = NULL; in mem_cgroup_clear_mc()
6034 struct mem_cgroup *from; in mem_cgroup_can_attach() local
6068 from = mem_cgroup_from_task(p); in mem_cgroup_can_attach()
6070 VM_BUG_ON(from == memcg); in mem_cgroup_can_attach()
6077 VM_BUG_ON(mc.from); in mem_cgroup_can_attach()
6085 mc.from = from; in mem_cgroup_can_attach()
6129 mc.from, mc.to)) { in mem_cgroup_move_charge_pte_range()
6139 mc.from, mc.to)) { in mem_cgroup_move_charge_pte_range()
6178 mc.from, mc.to)) { in mem_cgroup_move_charge_pte_range()
6190 if (!mem_cgroup_move_swap_account(ent, mc.from, mc.to)) { in mem_cgroup_move_charge_pte_range()
6231 atomic_inc(&mc.from->moving_account); in mem_cgroup_move_charge()
6254 atomic_dec(&mc.from->moving_account); in mem_cgroup_move_charge()