nsfs: clean-up ns_get_path() signature to return int
authorAleksa Sarai <cyphar@cyphar.com>
Fri, 6 Dec 2019 14:13:27 +0000 (01:13 +1100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Dec 2019 00:09:37 +0000 (19:09 -0500)
commitce623f89872df4253719be71531116751eeab85f
treea47f85060eeaa4e4d0a277f81dab29d824fd0c33
parent2b98149c2377bff12be5dd3ce02ae0506e2dd613
nsfs: clean-up ns_get_path() signature to return int

ns_get_path() and ns_get_path_cb() only ever return either NULL or an
ERR_PTR. It is far more idiomatic to simply return an integer, and it
makes all of the callers of ns_get_path() more straightforward to read.

Fixes: e149ed2b805f ("take the targets of /proc/*/ns/* symlinks to separate fs")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nsfs.c
fs/proc/namespaces.c
include/linux/proc_ns.h
kernel/bpf/offload.c
kernel/events/core.c