aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pid.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
committerTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
commitea4d65f14f6aaa53e379b93c5544245ef081b3e7 (patch)
treea15485f4f1cf547a52b31fa8e16e14b9579b7200 /include/linux/pid.h
parentce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c (diff)
parent496f3347d834aec91c38b45d6249ed00f58ad233 (diff)
Merge branch 'perm-fix' into omap-for-v4.19/fixes-v2
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