Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280168
b: refs/heads/master
c: 4b2619a
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 7d12919 commit 8414d5e
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 419148da6e76dd0d379b5ec33c461cee1015322e
refs/heads/master: 4b2619a571f9fbb46649f968eea284103734f718
18 changes: 9 additions & 9 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,26 +609,26 @@ static inline void __mnt_make_shortterm(struct vfsmount *mnt)
/*
* vfsmount lock must be held for write
*/
static void commit_tree(struct vfsmount *mnt)
static void commit_tree(struct mount *mnt)
{
struct vfsmount *parent = mnt->mnt_parent;
struct vfsmount *parent = mnt->mnt.mnt_parent;
struct vfsmount *m;
LIST_HEAD(head);
struct mnt_namespace *n = parent->mnt_ns;

BUG_ON(parent == mnt);
BUG_ON(parent == &mnt->mnt);

list_add_tail(&head, &mnt->mnt_list);
list_add_tail(&head, &mnt->mnt.mnt_list);
list_for_each_entry(m, &head, mnt_list) {
m->mnt_ns = n;
__mnt_make_longterm(m);
}

list_splice(&head, n->list.prev);

list_add_tail(&mnt->mnt_hash, mount_hashtable +
hash(parent, mnt->mnt_mountpoint));
list_add_tail(&mnt->mnt_child, &parent->mnt_mounts);
list_add_tail(&mnt->mnt.mnt_hash, mount_hashtable +
hash(parent, mnt->mnt.mnt_mountpoint));
list_add_tail(&mnt->mnt.mnt_child, &parent->mnt_mounts);
touch_mnt_namespace(n);
}

Expand Down Expand Up @@ -1617,12 +1617,12 @@ static int attach_recursive_mnt(struct vfsmount *source_mnt,
touch_mnt_namespace(parent_path->mnt->mnt_ns);
} else {
mnt_set_mountpoint(dest_mnt, dest_dentry, source_mnt);
commit_tree(source_mnt);
commit_tree(real_mount(source_mnt));
}

list_for_each_entry_safe(child, p, &tree_list, mnt.mnt_hash) {
list_del_init(&child->mnt.mnt_hash);
commit_tree(&child->mnt);
commit_tree(child);
}
br_write_unlock(vfsmount_lock);

Expand Down

0 comments on commit 8414d5e

Please sign in to comment.