diff options
author | Pavel Emelianov <xemul@openvz.org> | 2007-10-19 02:39:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:37 -0400 |
commit | a05f7b15deb2903d9f0b5df33ddd4d186d5ecac1 (patch) | |
tree | 559d774c0e31d61396b32a86558a3f4c9711b658 /include/linux/pid_namespace.h | |
parent | a47afb0f9d794d525a372c8d69902147cc88222a (diff) |
pid namespaces: make get_pid_ns() return the namespace itself
Make get_pid_ns() return the namespace itself to look like the other getters
and make the code using it look nicer.
Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Acked-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/pid_namespace.h')
-rw-r--r-- | include/linux/pid_namespace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index b9a17e08ff0f..ddb9a4c95968 100644 --- a/include/linux/pid_namespace.h +++ b/include/linux/pid_namespace.h | |||
@@ -24,9 +24,10 @@ struct pid_namespace { | |||
24 | 24 | ||
25 | extern struct pid_namespace init_pid_ns; | 25 | extern struct pid_namespace init_pid_ns; |
26 | 26 | ||
27 | static inline void get_pid_ns(struct pid_namespace *ns) | 27 | static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) |
28 | { | 28 | { |
29 | kref_get(&ns->kref); | 29 | kref_get(&ns->kref); |
30 | return ns; | ||
30 | } | 31 | } |
31 | 32 | ||
32 | extern struct pid_namespace *copy_pid_ns(unsigned long flags, struct pid_namespace *ns); | 33 | extern struct pid_namespace *copy_pid_ns(unsigned long flags, struct pid_namespace *ns); |