diff options
Diffstat (limited to 'include/linux/pid.h')
| -rw-r--r-- | include/linux/pid.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h index 7633d55d9a24..14a9a39da9c7 100644 --- a/include/linux/pid.h +++ b/include/linux/pid.h | |||
| @@ -7,11 +7,10 @@ | |||
| 7 | enum pid_type | 7 | enum pid_type |
| 8 | { | 8 | { |
| 9 | PIDTYPE_PID, | 9 | PIDTYPE_PID, |
| 10 | PIDTYPE_TGID, | ||
| 10 | PIDTYPE_PGID, | 11 | PIDTYPE_PGID, |
| 11 | PIDTYPE_SID, | 12 | PIDTYPE_SID, |
| 12 | PIDTYPE_MAX, | 13 | PIDTYPE_MAX, |
| 13 | /* only valid to __task_pid_nr_ns() */ | ||
| 14 | __PIDTYPE_TGID | ||
| 15 | }; | 14 | }; |
| 16 | 15 | ||
| 17 | /* | 16 | /* |
| @@ -67,12 +66,6 @@ struct pid | |||
| 67 | 66 | ||
| 68 | extern struct pid init_struct_pid; | 67 | extern struct pid init_struct_pid; |
| 69 | 68 | ||
| 70 | struct pid_link | ||
| 71 | { | ||
| 72 | struct hlist_node node; | ||
| 73 | struct pid *pid; | ||
| 74 | }; | ||
| 75 | |||
| 76 | static inline struct pid *get_pid(struct pid *pid) | 69 | static inline struct pid *get_pid(struct pid *pid) |
| 77 | { | 70 | { |
| 78 | if (pid) | 71 | if (pid) |
| @@ -177,7 +170,7 @@ pid_t pid_vnr(struct pid *pid); | |||
| 177 | do { \ | 170 | do { \ |
| 178 | if ((pid) != NULL) \ | 171 | if ((pid) != NULL) \ |
| 179 | hlist_for_each_entry_rcu((task), \ | 172 | hlist_for_each_entry_rcu((task), \ |
| 180 | &(pid)->tasks[type], pids[type].node) { | 173 | &(pid)->tasks[type], pid_links[type]) { |
| 181 | 174 | ||
| 182 | /* | 175 | /* |
| 183 | * Both old and new leaders may be attached to | 176 | * Both old and new leaders may be attached to |
