The patch titled pid namespaces: make get_pid_ns() return the namespace itself has been added to the -mm tree. Its filename is pid-namespaces-make-get_pid_ns-return-the-namespace-itself.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: pid namespaces: make get_pid_ns() return the namespace itself From: Pavel Emelianov <xemul@xxxxxxxxxx> 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@xxxxxxxxxx> Acked-by: Cedric Le Goater <clg@xxxxxxxxxx> Cc: Kirill Korotaev <dev@xxxxxxxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Cc: Herbert Poetzl <herbert@xxxxxxxxxxxx> Cc: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/pid_namespace.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN include/linux/pid_namespace.h~pid-namespaces-make-get_pid_ns-return-the-namespace-itself include/linux/pid_namespace.h --- a/include/linux/pid_namespace.h~pid-namespaces-make-get_pid_ns-return-the-namespace-itself +++ a/include/linux/pid_namespace.h @@ -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); _ Patches currently in -mm which might be from xemul@xxxxxxxxxx are make-common-helpers-for-seq_files-that-work-with-list_head-s.patch make-input-layer-use-seq_list_xxx-helpers.patch git-net.patch make-proc-slabinfo-use-seq_list_xxx-helpers.patch make-afs-use-seq_list_xxx-helpers.patch make-crypto-api-use-seq_list_xxx-helpers.patch make-proc-misc-use-seq_list_xxx-helpers.patch make-proc-modules-use-seq_list_xxx-helpers.patch make-proc-tty-drivers-use-seq_list_xxx-helpers.patch make-proc-self-mountstats-use-seq_list_xxx-helpers.patch make-nfs-client-use-seq_list_xxx-helpers.patch report-that-kernel-is-tainted-if-there-were-an-oops-before.patch remove-config_uts_ns-and-config_ipc_ns.patch user-namespace-add-the-framework.patch user-namespace-add-unshare.patch mm-fix-create_new_namespaces-return-value.patch add-a-kmem_cache-for-nsproxy-objects.patch make-isdn-capi-use-seq_list_xxx-helpers.patch pid-namespaces-round-up-the-api.patch pid-namespaces-make-get_pid_ns-return-the-namespace-itself.patch pid-namespaces-dynamic-kmem-cache-allocator-for-pid-namespaces.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html