Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187259
b: refs/heads/master
c: 8467005
h: refs/heads/master
i:
  187257: fb6f37a
  187255: d6fcf10
v: v3
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Mar 12, 2010
1 parent 2327331 commit 7dd423c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13aa9a6b0f2371d2ce0de57c2ede62ab7a787157
refs/heads/master: 8467005da3ef6104b89a4cc5e9c9d9445b75565f
8 changes: 0 additions & 8 deletions trunk/include/linux/init_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ extern struct fs_struct init_fs;
}

extern struct nsproxy init_nsproxy;
#define INIT_NSPROXY(nsproxy) { \
.pid_ns = &init_pid_ns, \
.count = ATOMIC_INIT(1), \
.uts_ns = &init_uts_ns, \
.mnt_ns = NULL, \
INIT_NET_NS(net_ns) \
INIT_IPC_NS(ipc_ns) \
}

#define INIT_SIGHAND(sighand) { \
.count = ATOMIC_INIT(1), \
Expand Down
5 changes: 0 additions & 5 deletions trunk/include/linux/ipc_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ extern struct ipc_namespace init_ipc_ns;
extern atomic_t nr_ipc_ns;

extern spinlock_t mq_lock;
#if defined(CONFIG_POSIX_MQUEUE) || defined(CONFIG_SYSVIPC)
#define INIT_IPC_NS(ns) .ns = &init_ipc_ns,
#else
#define INIT_IPC_NS(ns)
#endif

#ifdef CONFIG_SYSVIPC
extern int register_ipcns_notifier(struct ipc_namespace *);
Expand Down
5 changes: 0 additions & 5 deletions trunk/include/net/net_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,9 @@ struct net {
extern struct net init_net;

#ifdef CONFIG_NET
#define INIT_NET_NS(net_ns) .net_ns = &init_net,

extern struct net *copy_net_ns(unsigned long flags, struct net *net_ns);

#else /* CONFIG_NET */

#define INIT_NET_NS(net_ns)

static inline struct net *copy_net_ns(unsigned long flags, struct net *net_ns)
{
/* There is nothing to copy so this is a noop */
Expand Down
13 changes: 12 additions & 1 deletion trunk/kernel/nsproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@

static struct kmem_cache *nsproxy_cachep;

struct nsproxy init_nsproxy = INIT_NSPROXY(init_nsproxy);
struct nsproxy init_nsproxy = {
.count = ATOMIC_INIT(1),
.uts_ns = &init_uts_ns,
#if defined(CONFIG_POSIX_MQUEUE) || defined(CONFIG_SYSVIPC)
.ipc_ns = &init_ipc_ns,
#endif
.mnt_ns = NULL,
.pid_ns = &init_pid_ns,
#ifdef CONFIG_NET
.net_ns = &init_net,
#endif
};

static inline struct nsproxy *create_nsproxy(void)
{
Expand Down

0 comments on commit 7dd423c

Please sign in to comment.