]> git.hungrycats.org Git - linux/commitdiff
NFS: Fix typo in nomigration mount option
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 7 Nov 2017 22:25:47 +0000 (16:25 -0600)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Feb 2018 18:42:25 +0000 (18:42 +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: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/super.c

index 3fd83327bbad9e170bcf81e2e82557d3b9aa23d6..b04563f7be690efea9b34ba49dc49f943356b15e 100644 (file)
@@ -1319,7 +1319,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;
 
                /*