Lines Matching refs:css

422 	return &memcg->css;  in mem_cgroup_css_from_page()
446 while (memcg && !(memcg->css.flags & CSS_ONLINE)) in page_cgroup_ino()
449 ino = cgroup_ino(memcg->css.cgroup); in page_cgroup_ino()
594 !css_tryget(&mz->memcg->css)) in __mem_cgroup_largest_soft_limit_node()
634 cgroup_rstat_updated(memcg->css.cgroup, smp_processor_id()); in memcg_rstat_updated()
646 cgroup_rstat_flush_irqsafe(root_mem_cgroup->css.cgroup); in __mem_cgroup_flush_stats()
921 css_get(&memcg->css); in get_mem_cgroup_from_mm()
934 } while (!css_tryget(&memcg->css)); in get_mem_cgroup_from_mm()
975 struct cgroup_subsys_state *css = NULL; in mem_cgroup_iter() local
1001 if (!pos || css_tryget(&pos->css)) in mem_cgroup_iter()
1016 css = &pos->css; in mem_cgroup_iter()
1019 css = css_next_descendant_pre(css, &root->css); in mem_cgroup_iter()
1020 if (!css) { in mem_cgroup_iter()
1037 memcg = mem_cgroup_from_css(css); in mem_cgroup_iter()
1039 if (css == &root->css) in mem_cgroup_iter()
1042 if (css_tryget(css)) in mem_cgroup_iter()
1057 css_put(&pos->css); in mem_cgroup_iter()
1068 css_put(&prev->css); in mem_cgroup_iter()
1084 css_put(&prev->css); in mem_cgroup_iter_break()
1147 css_task_iter_start(&iter->css, CSS_TASK_ITER_PROCS, &it); in mem_cgroup_scan_tasks()
1516 pr_cont_cgroup_path(memcg->css.cgroup); in mem_cgroup_print_oom_context()
1552 pr_cont_cgroup_path(memcg->css.cgroup); in mem_cgroup_print_oom_meminfo()
1829 css_get(&memcg->css); in mem_cgroup_oom()
1922 css_put(&memcg->css); in mem_cgroup_oom_synchronize()
1976 css_get(&oom_group->css); in mem_cgroup_get_oom_group()
1986 pr_cont_cgroup_path(memcg->css.cgroup); in mem_cgroup_print_oom_group()
2172 css_put(&old->css); in drain_stock()
2212 css_get(&memcg->css); in refill_stock()
2527 css_put(&memcg->css); in mem_cgroup_handle_over_high()
2751 if (unlikely(!css_tryget(&memcg->css))) in get_mem_cgroup_from_objcg()
2986 css_put(&memcg->css); in obj_cgroup_uncharge_pages()
3012 css_put(&memcg->css); in obj_cgroup_charge_pages()
3306 css_get_many(&memcg->css, nr - 1); in split_page_memcg()
3469 css_put(&mz->memcg->css); in mem_cgroup_soft_limit_reclaim()
3482 css_put(&next_mz->memcg->css); in mem_cgroup_soft_limit_reclaim()
3523 static u64 mem_cgroup_hierarchy_read(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_read() argument
3529 static int mem_cgroup_hierarchy_write(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_write() argument
3569 static u64 mem_cgroup_read_u64(struct cgroup_subsys_state *css, in mem_cgroup_read_u64() argument
3572 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_read_u64()
3798 static u64 mem_cgroup_move_charge_read(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_read() argument
3801 return mem_cgroup_from_css(css)->move_charge_at_immigrate; in mem_cgroup_move_charge_read()
3805 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write() argument
3808 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_move_charge_write()
3823 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write() argument
4036 static u64 mem_cgroup_swappiness_read(struct cgroup_subsys_state *css, in mem_cgroup_swappiness_read() argument
4039 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_swappiness_read()
4044 static int mem_cgroup_swappiness_write(struct cgroup_subsys_state *css, in mem_cgroup_swappiness_write() argument
4047 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_swappiness_write()
4396 static int mem_cgroup_oom_control_write(struct cgroup_subsys_state *css, in mem_cgroup_oom_control_write() argument
4399 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_oom_control_write()
4435 if (!memcg->css.parent) in mem_cgroup_wb_domain()
4658 css_put(&memcg->css); in memcg_event_remove()
4720 struct cgroup_subsys_state *css = of_css(of); in memcg_write_event_control() local
4721 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memcg_write_event_control()
4814 if (cfile_css != css) { in memcg_write_event_control()
4835 css_put(css); in memcg_write_event_control()
5023 css_put(&memcg->css); in mem_cgroup_id_put_many()
5202 return &memcg->css; in mem_cgroup_css_alloc()
5213 return &memcg->css; in mem_cgroup_css_alloc()
5220 static int mem_cgroup_css_online(struct cgroup_subsys_state *css) in mem_cgroup_css_online() argument
5222 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_online()
5236 css_get(css); in mem_cgroup_css_online()
5244 static void mem_cgroup_css_offline(struct cgroup_subsys_state *css) in mem_cgroup_css_offline() argument
5246 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_offline()
5273 static void mem_cgroup_css_released(struct cgroup_subsys_state *css) in mem_cgroup_css_released() argument
5275 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_released()
5280 static void mem_cgroup_css_free(struct cgroup_subsys_state *css) in mem_cgroup_css_free() argument
5282 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_free()
5318 static void mem_cgroup_css_reset(struct cgroup_subsys_state *css) in mem_cgroup_css_reset() argument
5320 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_reset()
5334 static void mem_cgroup_css_rstat_flush(struct cgroup_subsys_state *css, int cpu) in mem_cgroup_css_rstat_flush() argument
5336 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_rstat_flush()
5638 css_get(&to->css); in mem_cgroup_move_account()
5639 css_put(&from->css); in mem_cgroup_move_account()
5891 struct cgroup_subsys_state *css; in mem_cgroup_can_attach() local
5910 cgroup_taskset_for_each_leader(leader, css, tset) { in mem_cgroup_can_attach()
5913 memcg = mem_cgroup_from_css(css); in mem_cgroup_can_attach()
6146 static u64 memory_current_read(struct cgroup_subsys_state *css, in memory_current_read() argument
6149 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memory_current_read()
6670 css_get(&memcg->css); in charge_memcg()
6688 css_put(&memcg->css); in __mem_cgroup_charge()
6719 if (!memcg || !css_tryget_online(&memcg->css)) in mem_cgroup_swapin_charge_page()
6725 css_put(&memcg->css); in mem_cgroup_swapin_charge_page()
6795 css_put(&ug->memcg->css); in uncharge_batch()
6835 css_get(&memcg->css); in uncharge_folio()
6855 css_put(&memcg->css); in uncharge_folio()
6930 css_get(&memcg->css); in mem_cgroup_migrate()
6959 if (css_tryget(&memcg->css)) in mem_cgroup_sk_alloc()
6968 css_put(&sk->sk_memcg->css); in mem_cgroup_sk_free()
7165 css_put(&memcg->css); in mem_cgroup_swapout()
7293 static u64 swap_current_read(struct cgroup_subsys_state *css, in swap_current_read() argument
7296 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in swap_current_read()