diff options
-rw-r--r-- | fs/proc/proc_misc.c | 2 | ||||
-rw-r--r-- | kernel/pid.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 89ccfa16b000..f6d6f81dd446 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -92,7 +92,7 @@ static int loadavg_read_proc(char *page, char **start, off_t off, | |||
92 | LOAD_INT(a), LOAD_FRAC(a), | 92 | LOAD_INT(a), LOAD_FRAC(a), |
93 | LOAD_INT(b), LOAD_FRAC(b), | 93 | LOAD_INT(b), LOAD_FRAC(b), |
94 | LOAD_INT(c), LOAD_FRAC(c), | 94 | LOAD_INT(c), LOAD_FRAC(c), |
95 | nr_running(), nr_threads, init_pid_ns.last_pid); | 95 | nr_running(), nr_threads, current->nsproxy->pid_ns->last_pid); |
96 | return proc_calc_metrics(page, start, off, count, eof, len); | 96 | return proc_calc_metrics(page, start, off, count, eof, len); |
97 | } | 97 | } |
98 | 98 | ||
diff --git a/kernel/pid.c b/kernel/pid.c index 5319b9f2fc5e..1d9cc268b499 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
@@ -196,7 +196,7 @@ fastcall void free_pid(struct pid *pid) | |||
196 | hlist_del_rcu(&pid->pid_chain); | 196 | hlist_del_rcu(&pid->pid_chain); |
197 | spin_unlock_irqrestore(&pidmap_lock, flags); | 197 | spin_unlock_irqrestore(&pidmap_lock, flags); |
198 | 198 | ||
199 | free_pidmap(&init_pid_ns, pid->nr); | 199 | free_pidmap(current->nsproxy->pid_ns, pid->nr); |
200 | call_rcu(&pid->rcu, delayed_put_pid); | 200 | call_rcu(&pid->rcu, delayed_put_pid); |
201 | } | 201 | } |
202 | 202 | ||
@@ -210,7 +210,7 @@ struct pid *alloc_pid(void) | |||
210 | if (!pid) | 210 | if (!pid) |
211 | goto out; | 211 | goto out; |
212 | 212 | ||
213 | nr = alloc_pidmap(&init_pid_ns); | 213 | nr = alloc_pidmap(current->nsproxy->pid_ns); |
214 | if (nr < 0) | 214 | if (nr < 0) |
215 | goto out_free; | 215 | goto out_free; |
216 | 216 | ||
@@ -352,7 +352,7 @@ struct pid *find_ge_pid(int nr) | |||
352 | pid = find_pid(nr); | 352 | pid = find_pid(nr); |
353 | if (pid) | 353 | if (pid) |
354 | break; | 354 | break; |
355 | nr = next_pidmap(&init_pid_ns, nr); | 355 | nr = next_pidmap(current->nsproxy->pid_ns, nr); |
356 | } while (nr > 0); | 356 | } while (nr > 0); |
357 | 357 | ||
358 | return pid; | 358 | return pid; |