ns: move ns type into struct ns_common
authorChristian Brauner <brauner@kernel.org>
Wed, 24 Sep 2025 11:33:59 +0000 (13:33 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 25 Sep 2025 07:23:54 +0000 (09:23 +0200)
commit4055526d35746ce8b04bfa5e14e14f28bb163186
tree9d42503429528822e4cc7c2a38f2fd4bbcf10d4c
parent10cdfcd37ade7ce736bc4a1927680f390a6b1f7b
ns: move ns type into struct ns_common

It's misplaced in struct proc_ns_operations and ns->ops might be NULL if
the namespace is compiled out but we still want to know the type of the
namespace for the initial namespace struct.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
19 files changed:
fs/namespace.c
fs/nsfs.c
include/linux/ns_common.h
include/linux/proc_ns.h
init/version-timestamp.c
ipc/msgutil.c
ipc/namespace.c
kernel/cgroup/cgroup.c
kernel/cgroup/namespace.c
kernel/nscommon.c
kernel/nsproxy.c
kernel/nstree.c
kernel/pid.c
kernel/pid_namespace.c
kernel/time/namespace.c
kernel/user.c
kernel/user_namespace.c
kernel/utsname.c
net/core/net_namespace.c