Skip to contentSkip to conversation

it maybe can't disable migration when mount with nomigration

PATCH New fanchaoting 1 participant 1 message Jan 14, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 it maybe can't disable migration when mount with nomigration

when mount with nomigration it maybe can't disable migration.

notice commit 896526174ce2b6a773e187ebe5a047b68230e2c 'Introduce "migration" mount option'

---
 fs/nfs/super.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/super.c +1 -1
index 2e7e8c8..e72efc8 100644
@@ -1304,7 +1304,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;
 
                /*

--
1.7.10.1