diff options
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 4 |
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)) |