Lines Matching defs:task
47 #include <linux/sched/task.h>
183 struct task_struct *task = current;
185 if (likely(task->mm == mm))
186 task->rss_stat.count[member] += val;
195 static void check_sync_rss_stat(struct task_struct *task)
197 if (unlikely(task != current))
199 if (unlikely(task->rss_stat.events++ > TASK_RSS_EVENTS_THRESH))
200 sync_mm_rss(task->mm);
207 static void check_sync_rss_stat(struct task_struct *task)
694 * copy one vm_area from one task to the other. Assumes the page tables
695 * already present in the new task to be cleared in the whole range
969 * could generate latencies in another task on another CPU.
3002 * Don't let another task, with possibly unlocked vma,
4690 * of perf event counters, but we'll still do the per-task accounting to
4691 * the task who triggered this page fault.
4786 * The task may have entered a memcg OOM situation but
5057 * given task for page fault accounting.