• Home
  • Raw
  • Download

Lines Matching refs:css

265 	return &container_of(vmpr, struct mem_cgroup, vmpressure)->css;  in vmpressure_to_css()
467 return &memcg->css; in mem_cgroup_css_from_page()
493 while (memcg && !(memcg->css.flags & CSS_ONLINE)) in page_cgroup_ino()
496 ino = cgroup_ino(memcg->css.cgroup); in page_cgroup_ino()
668 !css_tryget_online(&mz->memcg->css)) in __mem_cgroup_largest_soft_limit_node()
981 } while (!css_tryget(&memcg->css)); in get_mem_cgroup_from_mm()
1002 if (!memcg || !css_tryget_online(&memcg->css)) in get_mem_cgroup_from_page()
1018 if (css_tryget_online(&current->active_memcg->css)) in get_mem_cgroup_from_current()
1048 struct cgroup_subsys_state *css = NULL; in mem_cgroup_iter() local
1080 if (!pos || css_tryget(&pos->css)) in mem_cgroup_iter()
1095 css = &pos->css; in mem_cgroup_iter()
1098 css = css_next_descendant_pre(css, &root->css); in mem_cgroup_iter()
1099 if (!css) { in mem_cgroup_iter()
1116 memcg = mem_cgroup_from_css(css); in mem_cgroup_iter()
1118 if (css == &root->css) in mem_cgroup_iter()
1121 if (css_tryget(css)) in mem_cgroup_iter()
1136 css_put(&pos->css); in mem_cgroup_iter()
1148 css_put(&prev->css); in mem_cgroup_iter()
1164 css_put(&prev->css); in mem_cgroup_iter_break()
1231 css_task_iter_start(&iter->css, CSS_TASK_ITER_PROCS, &it); in mem_cgroup_scan_tasks()
1523 pr_cont_cgroup_path(memcg->css.cgroup); in mem_cgroup_print_oom_context()
1559 pr_cont_cgroup_path(memcg->css.cgroup); in mem_cgroup_print_oom_meminfo()
1927 css_get(&memcg->css); in mem_cgroup_oom()
2020 css_put(&memcg->css); in mem_cgroup_oom_synchronize()
2066 css_get(&oom_group->css); in mem_cgroup_get_oom_group()
2076 pr_cont_cgroup_path(memcg->css.cgroup); in mem_cgroup_print_oom_group()
2224 css_put_many(&old->css, stock->nr_pages); in drain_stock()
2228 css_put(&old->css); in drain_stock()
2264 css_get(&memcg->css); in refill_stock()
2549 css_put(&memcg->css); in mem_cgroup_handle_over_high()
2694 css_get_many(&memcg->css, nr_pages); in try_charge()
2699 css_get_many(&memcg->css, batch); in try_charge()
2737 css_put_many(&memcg->css, nr_pages); in cancel_charge()
2893 css_put(&memcg->css); in memcg_kmem_cache_create_func()
2905 if (!css_tryget_online(&memcg->css)) in memcg_schedule_kmem_cache_create()
2910 css_put(&memcg->css); in memcg_schedule_kmem_cache_create()
3079 css_put(&memcg->css); in __memcg_kmem_charge()
3119 css_put_many(&memcg->css, nr_pages); in __memcg_kmem_uncharge()
3303 css_put(&mz->memcg->css); in mem_cgroup_soft_limit_reclaim()
3316 css_put(&next_mz->memcg->css); in mem_cgroup_soft_limit_reclaim()
3331 ret = css_next_child(NULL, &memcg->css); in memcg_has_children()
3381 static u64 mem_cgroup_hierarchy_read(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_read() argument
3384 return mem_cgroup_from_css(css)->use_hierarchy; in mem_cgroup_hierarchy_read()
3387 static int mem_cgroup_hierarchy_write(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_write() argument
3391 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_hierarchy_write()
3392 struct mem_cgroup *parent_memcg = mem_cgroup_from_css(memcg->css.parent); in mem_cgroup_hierarchy_write()
3443 static u64 mem_cgroup_read_u64(struct cgroup_subsys_state *css, in mem_cgroup_read_u64() argument
3446 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_read_u64()
3568 struct cgroup_subsys_state *css; in memcg_offline_kmem() local
3603 css_for_each_descendant_pre(css, &memcg->css) { in memcg_offline_kmem()
3604 child = mem_cgroup_from_css(css); in memcg_offline_kmem()
3772 static u64 mem_cgroup_move_charge_read(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_read() argument
3775 return mem_cgroup_from_css(css)->move_charge_at_immigrate; in mem_cgroup_move_charge_read()
3779 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write() argument
3782 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_move_charge_write()
3801 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write() argument
4015 static u64 mem_cgroup_swappiness_read(struct cgroup_subsys_state *css, in mem_cgroup_swappiness_read() argument
4018 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_swappiness_read()
4023 static int mem_cgroup_swappiness_write(struct cgroup_subsys_state *css, in mem_cgroup_swappiness_write() argument
4026 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_swappiness_write()
4031 if (css->parent) in mem_cgroup_swappiness_write()
4376 static int mem_cgroup_oom_control_write(struct cgroup_subsys_state *css, in mem_cgroup_oom_control_write() argument
4379 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_oom_control_write()
4382 if (!css->parent || !((val == 0) || (val == 1))) in mem_cgroup_oom_control_write()
4415 if (!memcg->css.parent) in mem_cgroup_wb_domain()
4653 css_put(&memcg->css); in memcg_event_remove()
4715 struct cgroup_subsys_state *css = of_css(of); in memcg_write_event_control() local
4716 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memcg_write_event_control()
4820 if (cfile_css != css) { in memcg_write_event_control()
4841 css_put(css); in memcg_write_event_control()
5030 css_put(&memcg->css); in mem_cgroup_id_put_many()
5240 return &memcg->css; in mem_cgroup_css_alloc()
5250 return &memcg->css; in mem_cgroup_css_alloc()
5257 static int mem_cgroup_css_online(struct cgroup_subsys_state *css) in mem_cgroup_css_online() argument
5259 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_online()
5273 css_get(css); in mem_cgroup_css_online()
5277 static void mem_cgroup_css_offline(struct cgroup_subsys_state *css) in mem_cgroup_css_offline() argument
5279 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_offline()
5305 static void mem_cgroup_css_released(struct cgroup_subsys_state *css) in mem_cgroup_css_released() argument
5307 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_released()
5312 static void mem_cgroup_css_free(struct cgroup_subsys_state *css) in mem_cgroup_css_free() argument
5314 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_free()
5348 static void mem_cgroup_css_reset(struct cgroup_subsys_state *css) in mem_cgroup_css_reset() argument
5350 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_reset()
5804 css_put_many(&mc.to->css, mc.moved_swap); in __mem_cgroup_clear_mc()
5834 struct cgroup_subsys_state *css; in mem_cgroup_can_attach() local
5853 cgroup_taskset_for_each_leader(leader, css, tset) { in mem_cgroup_can_attach()
5856 memcg = mem_cgroup_from_css(css); in mem_cgroup_can_attach()
6107 static u64 memory_current_read(struct cgroup_subsys_state *css, in memory_current_read() argument
6110 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memory_current_read()
6583 if (memcg && !css_tryget_online(&memcg->css)) in mem_cgroup_try_charge()
6594 css_put(&memcg->css); in mem_cgroup_try_charge()
6733 css_put_many(&ug->memcg->css, nr_pages); in uncharge_batch()
6889 css_get_many(&memcg->css, nr_pages); in mem_cgroup_migrate()
6919 if (css_tryget_online(&memcg->css)) in mem_cgroup_sk_alloc()
6928 css_put(&sk->sk_memcg->css); in mem_cgroup_sk_free()
7129 css_put_many(&memcg->css, nr_entries); in mem_cgroup_swapout()
7263 static u64 swap_current_read(struct cgroup_subsys_state *css, in swap_current_read() argument
7266 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in swap_current_read()