aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namespace.c10
-rw-r--r--fs/pnode.c2
-rw-r--r--fs/pnode.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 211455e2cd17..c11b99af53cf 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -570,10 +570,10 @@ static void detach_mnt(struct mount *mnt, struct path *old_path)
570 * vfsmount lock must be held for write 570 * vfsmount lock must be held for write
571 */ 571 */
572void mnt_set_mountpoint(struct vfsmount *mnt, struct dentry *dentry, 572void mnt_set_mountpoint(struct vfsmount *mnt, struct dentry *dentry,
573 struct vfsmount *child_mnt) 573 struct mount *child_mnt)
574{ 574{
575 child_mnt->mnt_parent = mntget(mnt); 575 child_mnt->mnt.mnt_parent = mntget(mnt);
576 child_mnt->mnt_mountpoint = dget(dentry); 576 child_mnt->mnt.mnt_mountpoint = dget(dentry);
577 spin_lock(&dentry->d_lock); 577 spin_lock(&dentry->d_lock);
578 dentry->d_flags |= DCACHE_MOUNTED; 578 dentry->d_flags |= DCACHE_MOUNTED;
579 spin_unlock(&dentry->d_lock); 579 spin_unlock(&dentry->d_lock);
@@ -584,7 +584,7 @@ void mnt_set_mountpoint(struct vfsmount *mnt, struct dentry *dentry,
584 */ 584 */
585static void attach_mnt(struct mount *mnt, struct path *path) 585static void attach_mnt(struct mount *mnt, struct path *path)
586{ 586{
587 mnt_set_mountpoint(path->mnt, path->dentry, &mnt->mnt); 587 mnt_set_mountpoint(path->mnt, path->dentry, mnt);
588 list_add_tail(&mnt->mnt_hash, mount_hashtable + 588 list_add_tail(&mnt->mnt_hash, mount_hashtable +
589 hash(path->mnt, path->dentry)); 589 hash(path->mnt, path->dentry));
590 list_add_tail(&mnt->mnt.mnt_child, &path->mnt->mnt_mounts); 590 list_add_tail(&mnt->mnt.mnt_child, &path->mnt->mnt_mounts);
@@ -1617,7 +1617,7 @@ static int attach_recursive_mnt(struct mount *source_mnt,
1617 attach_mnt(source_mnt, path); 1617 attach_mnt(source_mnt, path);
1618 touch_mnt_namespace(parent_path->mnt->mnt_ns); 1618 touch_mnt_namespace(parent_path->mnt->mnt_ns);
1619 } else { 1619 } else {
1620 mnt_set_mountpoint(dest_mnt, dest_dentry, &source_mnt->mnt); 1620 mnt_set_mountpoint(dest_mnt, dest_dentry, source_mnt);
1621 commit_tree(source_mnt); 1621 commit_tree(source_mnt);
1622 } 1622 }
1623 1623
diff --git a/fs/pnode.c b/fs/pnode.c
index 5d79f38e3e8a..89ea50dc2af3 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -246,7 +246,7 @@ int propagate_mnt(struct vfsmount *dest_mnt, struct dentry *dest_dentry,
246 } 246 }
247 247
248 if (is_subdir(dest_dentry, m->mnt_root)) { 248 if (is_subdir(dest_dentry, m->mnt_root)) {
249 mnt_set_mountpoint(m, dest_dentry, &child->mnt); 249 mnt_set_mountpoint(m, dest_dentry, child);
250 list_add_tail(&child->mnt_hash, tree_list); 250 list_add_tail(&child->mnt_hash, tree_list);
251 } else { 251 } else {
252 /* 252 /*
diff --git a/fs/pnode.h b/fs/pnode.h
index 609ec008d5ce..bfd0bbcabf6d 100644
--- a/fs/pnode.h
+++ b/fs/pnode.h
@@ -38,7 +38,7 @@ void mnt_release_group_id(struct mount *);
38int get_dominating_id(struct vfsmount *mnt, const struct path *root); 38int get_dominating_id(struct vfsmount *mnt, const struct path *root);
39unsigned int mnt_get_count(struct vfsmount *mnt); 39unsigned int mnt_get_count(struct vfsmount *mnt);
40void mnt_set_mountpoint(struct vfsmount *, struct dentry *, 40void mnt_set_mountpoint(struct vfsmount *, struct dentry *,
41 struct vfsmount *); 41 struct mount *);
42void release_mounts(struct list_head *); 42void release_mounts(struct list_head *);
43void umount_tree(struct mount *, int, struct list_head *); 43void umount_tree(struct mount *, int, struct list_head *);
44struct mount *copy_tree(struct mount *, struct dentry *, int); 44struct mount *copy_tree(struct mount *, struct dentry *, int);