proc: introduce a proc_pid_ns helper
authorChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:19:01 +0000 (07:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:23:35 +0000 (07:23 +0200)
commit76f668be1e8e87d235fbd50037f50fdde948b46d
tree6473ada6105603c2705588b0749fa7cfb4b80176
parent441bc62741e6e7f8d428b827c2a7b482a467fc42
proc: introduce a proc_pid_ns helper

Factor out retrieving the per-sb pid namespaces from the sb private data
into an easier to understand helper.

Suggested-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/proc/array.c
fs/proc/base.c
fs/proc/self.c
fs/proc/thread_self.c
include/linux/proc_fs.h