diff options
author | Weston Andros Adamson <dros@netapp.com> | 2013-10-18 15:15:18 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-10-28 15:37:56 -0400 |
commit | 5837f6dfcb00f764976ddc178933e612702cbf54 (patch) | |
tree | 76a703b7da70c3c4b7e871e054068d1f3a61207f /fs/nfs/nfs4client.c | |
parent | 0f5f49b8b3593309fd3c3a2080a5fd465afdbe16 (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/nfs4client.c')
-rw-r--r-- | fs/nfs/nfs4client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index 04131c837f27..f6cc77c7d802 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c | |||
@@ -1051,6 +1051,7 @@ struct nfs_server *nfs4_create_referral_server(struct nfs_clone_mount *data, | |||
1051 | { | 1051 | { |
1052 | struct nfs_client *parent_client; | 1052 | struct nfs_client *parent_client; |
1053 | struct nfs_server *server, *parent_server; | 1053 | struct nfs_server *server, *parent_server; |
1054 | bool auth_probe; | ||
1054 | int error; | 1055 | int error; |
1055 | 1056 | ||
1056 | dprintk("--> nfs4_create_referral_server()\n"); | 1057 | dprintk("--> nfs4_create_referral_server()\n"); |
@@ -1083,8 +1084,9 @@ struct nfs_server *nfs4_create_referral_server(struct nfs_clone_mount *data, | |||
1083 | if (error < 0) | 1084 | if (error < 0) |
1084 | goto error; | 1085 | goto error; |
1085 | 1086 | ||
1086 | error = nfs4_server_common_setup(server, mntfh, | 1087 | auth_probe = parent_server->auth_info.flavor_len < 1; |
1087 | !(parent_server->flags & NFS_MOUNT_SECFLAVOUR)); | 1088 | |
1089 | error = nfs4_server_common_setup(server, mntfh, auth_probe); | ||
1088 | if (error < 0) | 1090 | if (error < 0) |
1089 | goto error; | 1091 | goto error; |
1090 | 1092 | ||