Lines Matching refs:task
1160 struct task_struct *task; in mem_cgroup_scan_tasks() local
1163 while (!ret && (task = css_task_iter_next(&it))) { in mem_cgroup_scan_tasks()
1164 ret = fn(task, arg); in mem_cgroup_scan_tasks()
4128 static void mem_cgroup_fork(struct task_struct *task) in mem_cgroup_fork() argument
4136 task->objcg = (struct obj_cgroup *)CURRENT_OBJCG_UPDATE_FLAG; in mem_cgroup_fork()
4139 static void mem_cgroup_exit(struct task_struct *task) in mem_cgroup_exit() argument
4141 struct obj_cgroup *objcg = task->objcg; in mem_cgroup_exit()
4153 task->objcg = NULL; in mem_cgroup_exit()
4159 struct task_struct *task; in mem_cgroup_lru_gen_attach() local
4163 cgroup_taskset_for_each_leader(task, css, tset) in mem_cgroup_lru_gen_attach()
4166 if (!task) in mem_cgroup_lru_gen_attach()
4169 task_lock(task); in mem_cgroup_lru_gen_attach()
4170 if (task->mm && READ_ONCE(task->mm->owner) == task) in mem_cgroup_lru_gen_attach()
4171 lru_gen_migrate_mm(task->mm); in mem_cgroup_lru_gen_attach()
4172 task_unlock(task); in mem_cgroup_lru_gen_attach()
4180 struct task_struct *task; in mem_cgroup_kmem_attach() local
4183 cgroup_taskset_for_each(task, css, tset) { in mem_cgroup_kmem_attach()
4185 set_bit(CURRENT_OBJCG_UPDATE_BIT, (unsigned long *)&task->objcg); in mem_cgroup_kmem_attach()