Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154119
b: refs/heads/master
c: 3b22edc
h: refs/heads/master
i:
  154117: d7efcc3
  154115: ea052e2
  154111: 51a4ebf
v: v3
  • Loading branch information
Trond Myklebust authored and Al Viro committed Jun 24, 2009
1 parent 741021e commit 5cde8d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: 654f562c526cf9dfb8d453f687341fe0777ee454
refs/heads/master: 3b22edc5730b87d360ee7dd7143397ba09b73a47
11 changes: 2 additions & 9 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2222,16 +2222,9 @@ static void __init init_mount_tree(void)
mnt = do_kern_mount("rootfs", 0, "rootfs", NULL);
if (IS_ERR(mnt))
panic("Can't create rootfs");
ns = kmalloc(sizeof(*ns), GFP_KERNEL);
if (!ns)
ns = create_mnt_ns(mnt);
if (IS_ERR(ns))
panic("Can't allocate initial namespace");
atomic_set(&ns->count, 1);
INIT_LIST_HEAD(&ns->list);
init_waitqueue_head(&ns->poll);
ns->event = 0;
list_add(&mnt->mnt_list, &ns->list);
ns->root = mnt;
mnt->mnt_ns = ns;

init_task.nsproxy->mnt_ns = ns;
get_mnt_ns(ns);
Expand Down

0 comments on commit 5cde8d8

Please sign in to comment.