diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-09-22 14:42:36 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-09-22 14:47:10 +0200 |
| commit | d7610cb7454bbd8bf6d58f71b0ed57155d3c545f (patch) | |
| tree | 4014182d87c6fd373cabe9239b7766cd951e1964 /fs/namespace.c | |
| parent | 8535bd38b4d58a3d19bf8e7dfa66e1d8180b316a (diff) | |
ns: simplify ns_common_init() further
Simply derive the ns operations from the namespace type.
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/namespace.c')
| -rw-r--r-- | fs/namespace.c | 4 |
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); |