NFS: Fix typo in nomigration mount option
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 7 Nov 2017 22:25:47 +0000 (16:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:40:45 +0000 (08:40 +0000)
commit f02fee227e5f21981152850744a6084ff3fa94ee upstream.

The option was incorrectly masking off all other options.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/super.c

index c9d24bae302514957435350f8a8a560e98c8a961..216f67d628b3c9af33a229ad4ff190956490bf3e 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;
 
                /*