Mirror MS_KERNMOUNT in ->mnt_flags
[linux-2.6-block.git] / fs / namespace.c
index b0b15cc2117cb17359f37f01392c893663f58309..ffa3843404e060fa23a501f8833cae0604cc4adf 100644 (file)
@@ -1701,7 +1701,7 @@ int do_add_mount(struct vfsmount *newmnt, struct path *path,
 {
        int err;
 
-       mnt_flags &= ~(MNT_SHARED | MNT_WRITE_HOLD);
+       mnt_flags &= ~(MNT_SHARED | MNT_WRITE_HOLD | MNT_INTERNAL);
 
        down_write(&namespace_sem);
        /* Something was mounted here while we slept */