/mm/ |
D | oom_kill.c | 88 struct task_struct *tsk; in oom_cpuset_eligible() local 96 for_each_thread(start, tsk) { in oom_cpuset_eligible() 104 ret = mempolicy_nodemask_intersects(tsk, mask); in oom_cpuset_eligible() 110 ret = cpuset_mems_allowed_intersects(current, tsk); in oom_cpuset_eligible() 120 static bool oom_cpuset_eligible(struct task_struct *tsk, struct oom_control *oc) in oom_cpuset_eligible() argument 567 static bool oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) in oom_reap_task_mm() argument 572 trace_skip_task_reaping(tsk->pid); in oom_reap_task_mm() 583 trace_skip_task_reaping(tsk->pid); in oom_reap_task_mm() 587 trace_start_task_reaping(tsk->pid); in oom_reap_task_mm() 595 task_pid_nr(tsk), tsk->comm, in oom_reap_task_mm() [all …]
|
D | mmu_context.c | 25 struct task_struct *tsk = current; in use_mm() local 27 task_lock(tsk); in use_mm() 28 active_mm = tsk->active_mm; in use_mm() 31 tsk->active_mm = mm; in use_mm() 33 tsk->mm = mm; in use_mm() 34 switch_mm(active_mm, mm, tsk); in use_mm() 35 task_unlock(tsk); in use_mm() 55 struct task_struct *tsk = current; in unuse_mm() local 57 task_lock(tsk); in unuse_mm() 59 tsk->mm = NULL; in unuse_mm() [all …]
|
D | memory-failure.c | 199 struct task_struct *tsk; member 211 struct task_struct *t = tk->tsk; in kill_proc() 308 static void add_to_kill(struct task_struct *tsk, struct page *p, in add_to_kill() argument 343 page_to_pfn(p), tsk->comm); in add_to_kill() 348 get_task_struct(tsk); in add_to_kill() 349 tk->tsk = tsk; in add_to_kill() 375 pfn, tk->tsk->comm, tk->tsk->pid); in kill_procs() 377 tk->tsk, PIDTYPE_PID); in kill_procs() 388 pfn, tk->tsk->comm, tk->tsk->pid); in kill_procs() 390 put_task_struct(tk->tsk); in kill_procs() [all …]
|
D | gup.c | 618 static int faultin_page(struct task_struct *tsk, struct vm_area_struct *vma, in faultin_page() argument 649 if (tsk) { in faultin_page() 651 tsk->maj_flt++; in faultin_page() 653 tsk->min_flt++; in faultin_page() 779 static long __get_user_pages(struct task_struct *tsk, struct mm_struct *mm, in __get_user_pages() argument 845 ret = faultin_page(tsk, vma, start, &foll_flags, in __get_user_pages() 948 int fixup_user_fault(struct task_struct *tsk, struct mm_struct *mm, in fixup_user_fault() argument 988 if (tsk) { in fixup_user_fault() 990 tsk->maj_flt++; in fixup_user_fault() 992 tsk->min_flt++; in fixup_user_fault() [all …]
|
D | page-writeback.c | 404 struct task_struct *tsk; in domain_dirty_limits() local 438 tsk = current; in domain_dirty_limits() 439 if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk)) { in domain_dirty_limits() 480 struct task_struct *tsk = current; in node_dirty_limit() local 489 if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk)) in node_dirty_limit()
|
D | nommu.c | 1703 int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, in __access_remote_vm() argument 1757 int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, in access_process_vm() argument 1765 mm = get_task_mm(tsk); in access_process_vm() 1769 len = __access_remote_vm(tsk, mm, addr, buf, len, gup_flags); in access_process_vm()
|
D | mempolicy.c | 367 void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new) in mpol_rebind_task() argument 369 mpol_rebind_policy(tsk->mempolicy, new); in mpol_rebind_task() 2022 bool mempolicy_nodemask_intersects(struct task_struct *tsk, in mempolicy_nodemask_intersects() argument 2030 task_lock(tsk); in mempolicy_nodemask_intersects() 2031 mempolicy = tsk->mempolicy; in mempolicy_nodemask_intersects() 2052 task_unlock(tsk); in mempolicy_nodemask_intersects()
|
D | vmscan.c | 3896 struct task_struct *tsk = current; in kswapd() local 3900 set_cpus_allowed_ptr(tsk, cpumask); in kswapd() 3914 tsk->flags |= PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD; in kswapd() 3961 tsk->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD); in kswapd()
|
D | memory.c | 4332 int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, in __access_remote_vm() argument 4348 ret = get_user_pages_remote(tsk, mm, addr, 1, in __access_remote_vm() 4418 int access_process_vm(struct task_struct *tsk, unsigned long addr, in access_process_vm() argument 4424 mm = get_task_mm(tsk); in access_process_vm() 4428 ret = __access_remote_vm(tsk, mm, addr, buf, len, gup_flags); in access_process_vm()
|
D | compaction.c | 2631 struct task_struct *tsk = current; in kcompactd() local 2636 set_cpus_allowed_ptr(tsk, cpumask); in kcompactd()
|
D | page_alloc.c | 4225 static bool oom_reserves_allowed(struct task_struct *tsk) in oom_reserves_allowed() argument 4227 if (!tsk_is_oom_victim(tsk)) in oom_reserves_allowed()
|