aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pid.h')
-rw-r--r--include/linux/pid.h11
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 @@
7enum pid_type 7enum 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
68extern struct pid init_struct_pid; 67extern struct pid init_struct_pid;
69 68
70struct pid_link
71{
72 struct hlist_node node;
73 struct pid *pid;
74};
75
76static inline struct pid *get_pid(struct pid *pid) 69static 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