mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Acked-by: Cedric Le Goater <[email protected]> Cc: Kirill Korotaev <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Herbert Poetzl <[email protected]> Cc: Sukadev Bhattiprolu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
a47afb0f9d
commit
a05f7b15de
1 file changed
+2
-1
@@ -24,9 +24,10 @@ struct pid_namespace {
|
||||
|
||||
extern struct pid_namespace init_pid_ns;
|
||||
|
||||
static inline void get_pid_ns(struct pid_namespace *ns)
|
||||
static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)
|
||||
{
|
||||
kref_get(&ns->kref);
|
||||
return ns;
|
||||
}
|
||||
|
||||
extern struct pid_namespace *copy_pid_ns(unsigned long flags, struct pid_namespace *ns);
|
||||
|
||||
Reference in new issue
Block a user