mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
ns: use NS_COMMON_INIT() for all namespaces
Now that we have a common initializer use it for all static namespaces. Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
#include <linux/utsname.h>
|
||||
|
||||
struct uts_namespace init_uts_ns = {
|
||||
.ns.ns_type = ns_common_type(&init_uts_ns),
|
||||
.ns.__ns_ref = REFCOUNT_INIT(2),
|
||||
.ns = NS_COMMON_INIT(init_uts_ns, 2),
|
||||
.name = {
|
||||
.sysname = UTS_SYSNAME,
|
||||
.nodename = UTS_NODENAME,
|
||||
@@ -19,10 +18,6 @@ struct uts_namespace init_uts_ns = {
|
||||
.domainname = UTS_DOMAINNAME,
|
||||
},
|
||||
.user_ns = &init_user_ns,
|
||||
.ns.inum = ns_init_inum(&init_uts_ns),
|
||||
#ifdef CONFIG_UTS_NS
|
||||
.ns.ops = &utsns_operations,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* FIXED STRINGS! Don't touch! */
|
||||
|
||||
Reference in New Issue
Block a user