mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01: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:
parent
d915fe20e5
commit
0b1765830c
7 changed files with 7 additions and 36 deletions
|
|
@ -27,13 +27,8 @@ DEFINE_SPINLOCK(mq_lock);
|
|||
* and not CONFIG_IPC_NS.
|
||||
*/
|
||||
struct ipc_namespace init_ipc_ns = {
|
||||
.ns.__ns_ref = REFCOUNT_INIT(1),
|
||||
.ns = NS_COMMON_INIT(init_ipc_ns, 1),
|
||||
.user_ns = &init_user_ns,
|
||||
.ns.inum = ns_init_inum(&init_ipc_ns),
|
||||
#ifdef CONFIG_IPC_NS
|
||||
.ns.ops = &ipcns_operations,
|
||||
#endif
|
||||
.ns.ns_type = ns_common_type(&init_ipc_ns),
|
||||
};
|
||||
|
||||
struct msg_msgseg {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue