Lines Matching refs:leader
2757 struct dentry *dentry, *leader, *dir; in proc_flush_task_mnt() local
2773 leader = d_hash_and_lookup(mnt->mnt_root, &name); in proc_flush_task_mnt()
2774 if (!leader) in proc_flush_task_mnt()
2779 dir = d_hash_and_lookup(leader, &name); in proc_flush_task_mnt()
2794 dput(leader); in proc_flush_task_mnt()
3175 struct task_struct *leader = get_proc_task(dir); in proc_task_lookup() local
3179 if (!leader) in proc_task_lookup()
3194 if (!same_thread_group(leader, task)) in proc_task_lookup()
3201 put_task_struct(leader); in proc_task_lookup()
3218 static struct task_struct *first_tid(struct task_struct *leader, in first_tid() argument
3227 if (pos && (pos->group_leader == leader)) in first_tid()
3233 if (nr && nr >= get_nr_threads(leader)) in first_tid()
3239 for (pos = leader; nr > 0; --nr) { in first_tid()
3241 if (pos == leader) { in first_tid()
3289 struct task_struct *leader = NULL; in proc_task_readdir() local
3301 leader = task->group_leader; in proc_task_readdir()
3302 get_task_struct(leader); in proc_task_readdir()
3306 if (!leader) in proc_task_readdir()
3331 for (task = first_tid(leader, tid, filp->f_pos - 2, ns); in proc_task_readdir()
3344 put_task_struct(leader); in proc_task_readdir()