diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-11-25 00:01:17 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:57:07 -0500 |
commit | 14cf1fa8f54353d9caf6174c1e4280c8c4dcfd7a (patch) | |
tree | 1a5fbc1f94f6d8d19492b26ab05b71e8e2d108a2 /fs/namespace.c | |
parent | a8d56d8e4fa0cb9a023834363f8d79415d277a1d (diff) |
vfs: spread struct mount - remaining argument of mnt_set_mountpoint()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 8432344333da..ee42e671afdc 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 | /* | 570 | /* |
571 | * vfsmount lock must be held for write | 571 | * vfsmount lock must be held for write |
572 | */ | 572 | */ |
573 | void mnt_set_mountpoint(struct vfsmount *mnt, struct dentry *dentry, | 573 | void mnt_set_mountpoint(struct mount *mnt, struct dentry *dentry, |
574 | struct mount *child_mnt) | 574 | struct mount *child_mnt) |
575 | { | 575 | { |
576 | child_mnt->mnt_parent = real_mount(mntget(mnt)); | 576 | child_mnt->mnt_parent = real_mount(mntget(&mnt->mnt)); |
577 | child_mnt->mnt_mountpoint = dget(dentry); | 577 | child_mnt->mnt_mountpoint = dget(dentry); |
578 | spin_lock(&dentry->d_lock); | 578 | spin_lock(&dentry->d_lock); |
579 | dentry->d_flags |= DCACHE_MOUNTED; | 579 | dentry->d_flags |= DCACHE_MOUNTED; |
@@ -585,7 +585,7 @@ void mnt_set_mountpoint(struct vfsmount *mnt, struct dentry *dentry, | |||
585 | */ | 585 | */ |
586 | static void attach_mnt(struct mount *mnt, struct path *path) | 586 | static void attach_mnt(struct mount *mnt, struct path *path) |
587 | { | 587 | { |
588 | mnt_set_mountpoint(path->mnt, path->dentry, mnt); | 588 | mnt_set_mountpoint(real_mount(path->mnt), path->dentry, mnt); |
589 | list_add_tail(&mnt->mnt_hash, mount_hashtable + | 589 | list_add_tail(&mnt->mnt_hash, mount_hashtable + |
590 | hash(path->mnt, path->dentry)); | 590 | hash(path->mnt, path->dentry)); |
591 | list_add_tail(&mnt->mnt_child, &real_mount(path->mnt)->mnt_mounts); | 591 | list_add_tail(&mnt->mnt_child, &real_mount(path->mnt)->mnt_mounts); |
@@ -1620,7 +1620,7 @@ static int attach_recursive_mnt(struct mount *source_mnt, | |||
1620 | attach_mnt(source_mnt, path); | 1620 | attach_mnt(source_mnt, path); |
1621 | touch_mnt_namespace(parent_path->mnt->mnt_ns); | 1621 | touch_mnt_namespace(parent_path->mnt->mnt_ns); |
1622 | } else { | 1622 | } else { |
1623 | mnt_set_mountpoint(&dest_mnt->mnt, dest_dentry, source_mnt); | 1623 | mnt_set_mountpoint(dest_mnt, dest_dentry, source_mnt); |
1624 | commit_tree(source_mnt); | 1624 | commit_tree(source_mnt); |
1625 | } | 1625 | } |
1626 | 1626 | ||