]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
NFS: Set NFS_CS_MIGRATION for NFSv4 mounts
authorChuck Lever <chuck.lever@oracle.com>
Tue, 25 Jun 2013 16:23:27 +0000 (12:23 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Jun 2013 20:04:10 +0000 (16:04 -0400)
NFS_CS_MIGRATION makes sense only for NFSv4 mounts.  Introduced by
commit 89652617 (NFS: Introduce "migration" mount option) Fri Sep 14
17:24:11 2012.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/client.c
fs/nfs/nfs4client.c

index c513b0cc835f9f32db99def2a6868fdf7848e5fe..dbb65fb9e82dfe7b3fbb1f68c404ce9bd429e9ed 100644 (file)
@@ -753,8 +753,6 @@ static int nfs_init_server(struct nfs_server *server,
                        data->timeo, data->retrans);
        if (data->flags & NFS_MOUNT_NORESVPORT)
                set_bit(NFS_CS_NORESVPORT, &cl_init.init_flags);
-       if (server->options & NFS_OPTION_MIGRATION)
-               set_bit(NFS_CS_MIGRATION, &cl_init.init_flags);
 
        /* Allocate or find a client reference we can use */
        clp = nfs_get_client(&cl_init, &timeparms, NULL, RPC_AUTH_UNIX);
index daecaa94d7ad0a4a8b10226df00e28e609573649..0054e4bd6b555c3ff514c689bc933f70b5f1f573 100644 (file)
@@ -626,6 +626,8 @@ static int nfs4_set_client(struct nfs_server *server,
 
        if (server->flags & NFS_MOUNT_NORESVPORT)
                set_bit(NFS_CS_NORESVPORT, &cl_init.init_flags);
+       if (server->options & NFS_OPTION_MIGRATION)
+               set_bit(NFS_CS_MIGRATION, &cl_init.init_flags);
 
        /* Allocate or find a client reference we can use */
        clp = nfs_get_client(&cl_init, timeparms, ip_addr, authflavour);