NFS: Fix typo in nomigration mount option
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 7 Nov 2017 22:25:47 +0000 (16:25 -0600)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 17 Nov 2017 21:43:52 +0000 (16:43 -0500)
The option was incorrectly masking off all other options.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Cc: stable@vger.kernel.org #3.7
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/super.c

index da19c72..43cadb2 100644 (file)
@@ -1332,7 +1332,7 @@ static int nfs_parse_mount_options(char *raw,
                        mnt->options |= NFS_OPTION_MIGRATION;
                        break;
                case Opt_nomigration:
-                       mnt->options &= NFS_OPTION_MIGRATION;
+                       mnt->options &= ~NFS_OPTION_MIGRATION;
                        break;
 
                /*