use SB flags instead of MS in remount_fs
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 16 Dec 2019 01:23:01 +0000 (20:23 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 16 Dec 2019 01:23:01 +0000 (20:23 -0500)
fs/wrapfs/super.c

index 94ee5c04ed5e0052682527728dc1e93ace8a2461..7468a2ed89ca8036d48a68b53f8c3e51de731841 100644 (file)
@@ -64,7 +64,7 @@ static int wrapfs_remount_fs(struct super_block *sb, int *flags, char *options)
         * can safely accept a few flags (RDONLY, MANDLOCK), and honor
         * SILENT, but anything else left over is an error.
         */
-       if ((*flags & ~(MS_RDONLY | MS_MANDLOCK | MS_SILENT)) != 0) {
+       if ((*flags & ~(SB_RDONLY | SB_MANDLOCK | SB_SILENT)) != 0) {
                printk(KERN_ERR
                       "wrapfs: remount flags 0x%x unsupported\n", *flags);
                err = -EINVAL;