x86/debug: Fix DR_STEP vs ptrace_get_debugreg(6)
[linux-2.6-microblaze.git] / fs / namespace.c
index 1a75336..cebaa3e 100644 (file)
@@ -3171,6 +3171,8 @@ int path_mount(const char *dev_name, struct path *path,
                mnt_flags &= ~(MNT_RELATIME | MNT_NOATIME);
        if (flags & MS_RDONLY)
                mnt_flags |= MNT_READONLY;
+       if (flags & MS_NOSYMFOLLOW)
+               mnt_flags |= MNT_NOSYMFOLLOW;
 
        /* The default atime for remount is preservation */
        if ((flags & MS_REMOUNT) &&