mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
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>
This commit is contained in:
parent
8535bd38b4
commit
d7610cb745
9 changed files with 34 additions and 19 deletions
|
|
@ -62,7 +62,7 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
|
|||
if (ns == NULL)
|
||||
goto fail_dec;
|
||||
|
||||
err = ns_common_init(ns, &ipcns_operations);
|
||||
err = ns_common_init(ns);
|
||||
if (err)
|
||||
goto fail_free;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue