Merge tag 'gpio-updates-for-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / fs / namespace.c
index 3beda4b..ef1fd68 100644 (file)
@@ -2878,7 +2878,12 @@ static int do_remount(struct path *path, int ms_flags, int sb_flags,
        if (IS_ERR(fc))
                return PTR_ERR(fc);
 
+       /*
+        * Indicate to the filesystem that the remount request is coming
+        * from the legacy mount system call.
+        */
        fc->oldapi = true;
+
        err = parse_monolithic_mount_data(fc, data);
        if (!err) {
                down_write(&sb->s_umount);
@@ -3328,6 +3333,12 @@ static int do_new_mount(struct path *path, const char *fstype, int sb_flags,
        if (IS_ERR(fc))
                return PTR_ERR(fc);
 
+       /*
+        * Indicate to the filesystem that the mount request is coming
+        * from the legacy mount system call.
+        */
+       fc->oldapi = true;
+
        if (subtype)
                err = vfs_parse_fs_string(fc, "subtype",
                                          subtype, strlen(subtype));
@@ -5436,7 +5447,6 @@ static struct ctl_table fs_namespace_sysctls[] = {
                .proc_handler   = proc_dointvec_minmax,
                .extra1         = SYSCTL_ONE,
        },
-       { }
 };
 
 static int __init init_fs_namespace_sysctls(void)