Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: use ns_common_init()

Don't cargo-cult the same thing over and over.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>

+1 -3
+1 -3
ipc/namespace.c
··· 61 61 if (ns == NULL) 62 62 goto fail_dec; 63 63 64 - err = ns_alloc_inum(&ns->ns); 64 + err = ns_common_init(&ns->ns, &ipcns_operations, true); 65 65 if (err) 66 66 goto fail_free; 67 - ns->ns.ops = &ipcns_operations; 68 67 69 - refcount_set(&ns->ns.count, 1); 70 68 ns->user_ns = get_user_ns(user_ns); 71 69 ns->ucounts = ucounts; 72 70