aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-04-18 13:58:15 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-06-11 21:36:01 -0400
commit9393bd07cf218ca51d0e627653f906a9d76a9131 (patch)
tree402205fe6336028df48cd65b31da0482f0b0bb41 /fs/namespace.c
parent589ff870ed60a9ebdd5ec99ec3f5afe1282fe151 (diff)
switch follow_down()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index c85962206aad..ba5237be1cf9 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1601,7 +1601,7 @@ static int do_move_mount(struct path *path, char *old_name)
1601 1601
1602 down_write(&namespace_sem); 1602 down_write(&namespace_sem);
1603 while (d_mountpoint(path->dentry) && 1603 while (d_mountpoint(path->dentry) &&
1604 follow_down(&path->mnt, &path->dentry)) 1604 follow_down(path))
1605 ; 1605 ;
1606 err = -EINVAL; 1606 err = -EINVAL;
1607 if (!check_mnt(path->mnt) || !check_mnt(old_path.mnt)) 1607 if (!check_mnt(path->mnt) || !check_mnt(old_path.mnt))
@@ -1695,7 +1695,7 @@ int do_add_mount(struct vfsmount *newmnt, struct path *path,
1695 down_write(&namespace_sem); 1695 down_write(&namespace_sem);
1696 /* Something was mounted here while we slept */ 1696 /* Something was mounted here while we slept */
1697 while (d_mountpoint(path->dentry) && 1697 while (d_mountpoint(path->dentry) &&
1698 follow_down(&path->mnt, &path->dentry)) 1698 follow_down(path))
1699 ; 1699 ;
1700 err = -EINVAL; 1700 err = -EINVAL;
1701 if (!(mnt_flags & MNT_SHRINKABLE) && !check_mnt(path->mnt)) 1701 if (!(mnt_flags & MNT_SHRINKABLE) && !check_mnt(path->mnt))