[PATCH] it maybe can't disable migration when mount with nomigration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

Signed-off-by: Fan Chaoting <fanchaoting@xxxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux