Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73721
b: refs/heads/master
c: 9fcc2d1
h: refs/heads/master
i:
  73719: 34569bb
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Nov 15, 2007
1 parent 7454fb6 commit 39e18cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0f2a9d75aed1a4be40c3975b94fd39066bd11bb
refs/heads/master: 9fcc2d15b14894aa53e5e8b7fd5d6e3ca558e5df
15 changes: 6 additions & 9 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2328,21 +2328,18 @@ static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid)

void proc_flush_task(struct task_struct *task)
{
int i, leader;
struct pid *pid, *tgid;
int i;
struct pid *pid, *tgid = NULL;
struct upid *upid;

leader = thread_group_leader(task);
proc_flush_task_mnt(proc_mnt, task->pid, leader ? task->tgid : 0);
pid = task_pid(task);
if (pid->level == 0)
return;
if (thread_group_leader(task))
tgid = task_tgid(task);

tgid = task_tgid(task);
for (i = 1; i <= pid->level; i++) {
for (i = 0; i <= pid->level; i++) {
upid = &pid->numbers[i];
proc_flush_task_mnt(upid->ns->proc_mnt, upid->nr,
leader ? 0 : tgid->numbers[i].nr);
tgid ? tgid->numbers[i].nr : 0);
}

upid = &pid->numbers[pid->level];
Expand Down

0 comments on commit 39e18cf

Please sign in to comment.