Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280209
b: refs/heads/master
c: be08d6d
h: refs/heads/master
i:
  280207: 3e32037
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 0e64a28 commit bb37077
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: 0226f4923f6c9b40cfa1c1c1b19a6ac6b3924ead
refs/heads/master: be08d6d260b6e7eb346162a1081cdf5f94fda569
2 changes: 1 addition & 1 deletion trunk/fs/mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

struct mnt_namespace {
atomic_t count;
struct vfsmount * root;
struct mount * root;
struct list_head list;
wait_queue_head_t poll;
int event;
Expand Down
12 changes: 6 additions & 6 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,7 @@ static struct mnt_namespace *dup_mnt_ns(struct mnt_namespace *mnt_ns,
struct mnt_namespace *new_ns;
struct vfsmount *rootmnt = NULL, *pwdmnt = NULL;
struct mount *p, *q;
struct mount *old = real_mount(mnt_ns->root);
struct mount *old = mnt_ns->root;
struct mount *new;

new_ns = alloc_mnt_ns();
Expand All @@ -2212,7 +2212,7 @@ static struct mnt_namespace *dup_mnt_ns(struct mnt_namespace *mnt_ns,
kfree(new_ns);
return ERR_PTR(-ENOMEM);
}
new_ns->root = &new->mnt;
new_ns->root = new;
br_write_lock(vfsmount_lock);
list_add_tail(&new_ns->list, &new->mnt_list);
br_write_unlock(vfsmount_lock);
Expand Down Expand Up @@ -2282,7 +2282,7 @@ static struct mnt_namespace *create_mnt_ns(struct vfsmount *m)
struct mount *mnt = real_mount(m);
mnt->mnt_ns = new_ns;
__mnt_make_longterm(mnt);
new_ns->root = m;
new_ns->root = mnt;
list_add(&new_ns->list, &mnt->mnt_list);
} else {
mntput(m);
Expand Down Expand Up @@ -2512,8 +2512,8 @@ static void __init init_mount_tree(void)
init_task.nsproxy->mnt_ns = ns;
get_mnt_ns(ns);

root.mnt = ns->root;
root.dentry = ns->root->mnt_root;
root.mnt = mnt;
root.dentry = mnt->mnt_root;

set_fs_pwd(current->fs, &root);
set_fs_root(current->fs, &root);
Expand Down Expand Up @@ -2560,7 +2560,7 @@ void put_mnt_ns(struct mnt_namespace *ns)
return;
down_write(&namespace_sem);
br_write_lock(vfsmount_lock);
umount_tree(real_mount(ns->root), 0, &umount_list);
umount_tree(ns->root, 0, &umount_list);
br_write_unlock(vfsmount_lock);
up_write(&namespace_sem);
release_mounts(&umount_list);
Expand Down

0 comments on commit bb37077

Please sign in to comment.