nscommon: simplify initialization

There's a lot of information that namespace implementers don't need to
know about at all. Encapsulate this all in the initialization helper.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christian Brauner
2025-09-17 12:28:07 +02:00
parent d5b27cb8c5
commit 5612ff3ec5
10 changed files with 55 additions and 20 deletions

View File

@@ -97,7 +97,7 @@ static struct time_namespace *clone_time_ns(struct user_namespace *user_ns,
if (!ns->vvar_page)
goto fail_free;
err = ns_common_init(&ns->ns, &timens_operations, true);
err = ns_common_init(ns, &timens_operations);
if (err)
goto fail_free_page;