aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/init_task.h3
-rw-r--r--include/linux/pid.h3
-rw-r--r--kernel/pid.c1
3 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 243e287304d0..5ac5945696a0 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -94,9 +94,6 @@ extern struct group_info init_groups;
94 94
95#define INIT_STRUCT_PID { \ 95#define INIT_STRUCT_PID { \
96 .count = ATOMIC_INIT(1), \ 96 .count = ATOMIC_INIT(1), \
97 .nr = 0, \
98 /* Don't put this struct pid in pid_hash */ \
99 .pid_chain = { .next = NULL, .pprev = NULL }, \
100 .tasks = { \ 97 .tasks = { \
101 { .first = &init_task.pids[PIDTYPE_PID].node }, \ 98 { .first = &init_task.pids[PIDTYPE_PID].node }, \
102 { .first = &init_task.pids[PIDTYPE_PGID].node }, \ 99 { .first = &init_task.pids[PIDTYPE_PGID].node }, \
diff --git a/include/linux/pid.h b/include/linux/pid.h
index 16644cceb946..4817c6671e77 100644
--- a/include/linux/pid.h
+++ b/include/linux/pid.h
@@ -57,9 +57,6 @@ struct upid {
57struct pid 57struct pid
58{ 58{
59 atomic_t count; 59 atomic_t count;
60 /* Try to keep pid_chain in the same cacheline as nr for find_pid */
61 int nr;
62 struct hlist_node pid_chain;
63 /* lists of tasks that use this pid */ 60 /* lists of tasks that use this pid */
64 struct hlist_head tasks[PIDTYPE_MAX]; 61 struct hlist_head tasks[PIDTYPE_MAX];
65 struct rcu_head rcu; 62 struct rcu_head rcu;
diff --git a/kernel/pid.c b/kernel/pid.c
index 73a60e265f52..bed9e7f80a50 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -263,7 +263,6 @@ struct pid *alloc_pid(struct pid_namespace *ns)
263 263
264 get_pid_ns(ns); 264 get_pid_ns(ns);
265 pid->level = ns->level; 265 pid->level = ns->level;
266 pid->nr = pid->numbers[0].nr;
267 atomic_set(&pid->count, 1); 266 atomic_set(&pid->count, 1);
268 for (type = 0; type < PIDTYPE_MAX; ++type) 267 for (type = 0; type < PIDTYPE_MAX; ++type)
269 INIT_HLIST_HEAD(&pid->tasks[type]); 268 INIT_HLIST_HEAD(&pid->tasks[type]);