aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 779293e29b85..c768f733c8d6 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1671,6 +1671,8 @@ int do_add_mount(struct vfsmount *newmnt, struct path *path,
1671{ 1671{
1672 int err; 1672 int err;
1673 1673
1674 mnt_flags &= ~(MNT_SHARED | MNT_WRITE_HOLD);
1675
1674 down_write(&namespace_sem); 1676 down_write(&namespace_sem);
1675 /* Something was mounted here while we slept */ 1677 /* Something was mounted here while we slept */
1676 while (d_mountpoint(path->dentry) && 1678 while (d_mountpoint(path->dentry) &&