aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2013-10-18 15:15:18 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-28 15:37:56 -0400
commit5837f6dfcb00f764976ddc178933e612702cbf54 (patch)
tree76a703b7da70c3c4b7e871e054068d1f3a61207f /fs/nfs/nfs4proc.c
parent0f5f49b8b3593309fd3c3a2080a5fd465afdbe16 (diff)
NFS: stop using NFS_MOUNT_SECFLAVOUR server flag
Since the parsed sec= flavor is now stored in nfs_server->auth_info, we no longer need an nfs_server flag to determine if a sec= option was used. This flag has not been completely removed because it is still needed for the (old but still supported) non-text parsed mount options ABI compatability. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 1463c71b0862..0eb8dc5792da 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2920,7 +2920,7 @@ int nfs4_proc_get_rootfh(struct nfs_server *server, struct nfs_fh *fhandle,
2920 if (status != -NFS4ERR_WRONGSEC) 2920 if (status != -NFS4ERR_WRONGSEC)
2921 break; 2921 break;
2922 /* Did user force a 'sec=' mount option? */ 2922 /* Did user force a 'sec=' mount option? */
2923 if (server->flags & NFS_MOUNT_SECFLAVOUR) 2923 if (server->auth_info.flavor_len > 0)
2924 break; 2924 break;
2925 default: 2925 default:
2926 status = nfs4_do_find_root_sec(server, fhandle, info); 2926 status = nfs4_do_find_root_sec(server, fhandle, info);
@@ -3180,7 +3180,7 @@ static int nfs4_proc_lookup_common(struct rpc_clnt **clnt, struct inode *dir,
3180 if (client != *clnt) 3180 if (client != *clnt)
3181 goto out; 3181 goto out;
3182 /* No security negotiation if the user specified 'sec=' */ 3182 /* No security negotiation if the user specified 'sec=' */
3183 if (NFS_SERVER(dir)->flags & NFS_MOUNT_SECFLAVOUR) 3183 if (NFS_SERVER(dir)->auth_info.flavor_len > 0)
3184 goto out; 3184 goto out;
3185 client = nfs4_create_sec_client(client, dir, name); 3185 client = nfs4_create_sec_client(client, dir, name);
3186 if (IS_ERR(client)) 3186 if (IS_ERR(client))