summaryrefslogtreecommitdiff
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-09-22 14:47:25 +0200
committerChristian Brauner <brauner@kernel.org>2025-09-22 14:47:25 +0200
commitd969328c513c6679b4be11a995ffd4d184c25b34 (patch)
tree9d38639cdb55dfb9753dcf2c167222dcc6063643 /fs/namespace.c
parent7cf730321132e726ff949c6f3c0d5c598788f7a2 (diff)
parent5890f504ef543190beae2a4e244bbfa7c3e0b57c (diff)
Merge patch series "ns: minor tweaks"
Christian Brauner <brauner@kernel.org> says: * Add a missing include into the cgroup namespace header. * Simplify ns_common_init{_inum}() and derive the namespace operations from the namespace type. * Add debug asserts into ns_common_init{_inum}() to catch bugs. * patches from https://lore.kernel.org/20250922-work-namespace-ns_common-fixes-v1-0-3c26aeb30831@kernel.org: ns: add ns_debug() ns: simplify ns_common_init() further cgroup: add missing ns_common include Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 271cd6294c8a..d65917ec5544 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -4104,9 +4104,9 @@ static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns, bool a
}
if (anon)
- ret = ns_common_init_inum(new_ns, &mntns_operations, MNT_NS_ANON_INO);
+ ret = ns_common_init_inum(new_ns, MNT_NS_ANON_INO);
else
- ret = ns_common_init(new_ns, &mntns_operations);
+ ret = ns_common_init(new_ns);
if (ret) {
kfree(new_ns);
dec_mnt_namespaces(ucounts);