Source
22
22
#include "util.h"
23
23
24
24
DEFINE_SPINLOCK(mq_lock);
25
25
26
26
/*
27
27
* The next 2 defines are here bc this is the only file
28
28
* compiled when either CONFIG_SYSVIPC and CONFIG_POSIX_MQUEUE
29
29
* and not CONFIG_IPC_NS.
30
30
*/
31
31
struct ipc_namespace init_ipc_ns = {
32
-
.count = ATOMIC_INIT(1),
32
+
.count = REFCOUNT_INIT(1),
33
33
.user_ns = &init_user_ns,
34
34
.ns.inum = PROC_IPC_INIT_INO,
35
35
#ifdef CONFIG_IPC_NS
36
36
.ns.ops = &ipcns_operations,
37
37
#endif
38
38
};
39
39
40
40
struct msg_msgseg {
41
41
struct msg_msgseg *next;
42
42
/* the next part of the message follows immediately */