2013-01-14 04:00:26

by fanchaoting

[permalink] [raw]
Subject: [PATCH] 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'

Signed-off-by: Fan Chaoting <[email protected]>
---
fs/nfs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 2e7e8c8..e72efc8 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -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