Commit 1d32849b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] pid.h cleanup

Make the pid.h macros look less revolting in an 80-col window.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ad7a3bf3
...@@ -105,28 +105,28 @@ static inline pid_t pid_nr(struct pid *pid) ...@@ -105,28 +105,28 @@ static inline pid_t pid_nr(struct pid *pid)
} }
#define do_each_task_pid(who, type, task) \ #define do_each_task_pid(who, type, task) \
do { \ do { \
struct hlist_node *pos___; \ struct hlist_node *pos___; \
struct pid *pid___ = find_pid(who); \ struct pid *pid___ = find_pid(who); \
if (pid___ != NULL) \ if (pid___ != NULL) \
hlist_for_each_entry_rcu((task), pos___, \ hlist_for_each_entry_rcu((task), pos___, \
&pid___->tasks[type], pids[type].node) { &pid___->tasks[type], pids[type].node) {
#define while_each_task_pid(who, type, task) \ #define while_each_task_pid(who, type, task) \
} \ } \
} while (0) } while (0)
#define do_each_pid_task(pid, type, task) \ #define do_each_pid_task(pid, type, task) \
do { \ do { \
struct hlist_node *pos___; \ struct hlist_node *pos___; \
if (pid != NULL) \ if (pid != NULL) \
hlist_for_each_entry_rcu((task), pos___, \ hlist_for_each_entry_rcu((task), pos___, \
&pid->tasks[type], pids[type].node) { &pid->tasks[type], pids[type].node) {
#define while_each_pid_task(pid, type, task) \ #define while_each_pid_task(pid, type, task) \
} \ } \
} while (0) } while (0)
#endif /* _LINUX_PID_H */ #endif /* _LINUX_PID_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment