aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/client.c6
-rw-r--r--fs/nfs/internal.h5
-rw-r--r--fs/nfs/nfs4client.c3
-rw-r--r--include/linux/nfs_xdr.h2
4 files changed, 6 insertions, 10 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 340b1eff0267..2dceee4db076 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -501,8 +501,7 @@ nfs_get_client(const struct nfs_client_initdata *cl_init,
501 &nn->nfs_client_list); 501 &nn->nfs_client_list);
502 spin_unlock(&nn->nfs_client_lock); 502 spin_unlock(&nn->nfs_client_lock);
503 new->cl_flags = cl_init->init_flags; 503 new->cl_flags = cl_init->init_flags;
504 return rpc_ops->init_client(new, timeparms, ip_addr, 504 return rpc_ops->init_client(new, timeparms, ip_addr);
505 authflavour);
506 } 505 }
507 506
508 spin_unlock(&nn->nfs_client_lock); 507 spin_unlock(&nn->nfs_client_lock);
@@ -694,13 +693,12 @@ EXPORT_SYMBOL_GPL(nfs_init_server_rpcclient);
694 * @clp: nfs_client to initialise 693 * @clp: nfs_client to initialise
695 * @timeparms: timeout parameters for underlying RPC transport 694 * @timeparms: timeout parameters for underlying RPC transport
696 * @ip_addr: IP presentation address (not used) 695 * @ip_addr: IP presentation address (not used)
697 * @authflavor: authentication flavor for underlying RPC transport
698 * 696 *
699 * Returns pointer to an NFS client, or an ERR_PTR value. 697 * Returns pointer to an NFS client, or an ERR_PTR value.
700 */ 698 */
701struct nfs_client *nfs_init_client(struct nfs_client *clp, 699struct nfs_client *nfs_init_client(struct nfs_client *clp,
702 const struct rpc_timeout *timeparms, 700 const struct rpc_timeout *timeparms,
703 const char *ip_addr, rpc_authflavor_t authflavour) 701 const char *ip_addr)
704{ 702{
705 int error; 703 int error;
706 704
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 3c8373f90ab3..9b694f1e06c5 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -267,7 +267,7 @@ extern struct rpc_procinfo nfs4_procedures[];
267void nfs_close_context(struct nfs_open_context *ctx, int is_sync); 267void nfs_close_context(struct nfs_open_context *ctx, int is_sync);
268extern struct nfs_client *nfs_init_client(struct nfs_client *clp, 268extern struct nfs_client *nfs_init_client(struct nfs_client *clp,
269 const struct rpc_timeout *timeparms, 269 const struct rpc_timeout *timeparms,
270 const char *ip_addr, rpc_authflavor_t authflavour); 270 const char *ip_addr);
271 271
272/* dir.c */ 272/* dir.c */
273extern int nfs_access_cache_shrinker(struct shrinker *shrink, 273extern int nfs_access_cache_shrinker(struct shrinker *shrink,
@@ -451,8 +451,7 @@ extern ssize_t nfs_dreq_bytes_left(struct nfs_direct_req *dreq);
451extern void __nfs4_read_done_cb(struct nfs_read_data *); 451extern void __nfs4_read_done_cb(struct nfs_read_data *);
452extern struct nfs_client *nfs4_init_client(struct nfs_client *clp, 452extern struct nfs_client *nfs4_init_client(struct nfs_client *clp,
453 const struct rpc_timeout *timeparms, 453 const struct rpc_timeout *timeparms,
454 const char *ip_addr, 454 const char *ip_addr);
455 rpc_authflavor_t authflavour);
456extern int nfs40_walk_client_list(struct nfs_client *clp, 455extern int nfs40_walk_client_list(struct nfs_client *clp,
457 struct nfs_client **result, 456 struct nfs_client **result,
458 struct rpc_cred *cred); 457 struct rpc_cred *cred);
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index 90dce91dd5b5..767a5e37fe97 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -187,8 +187,7 @@ static int nfs4_init_client_minor_version(struct nfs_client *clp)
187 */ 187 */
188struct nfs_client *nfs4_init_client(struct nfs_client *clp, 188struct nfs_client *nfs4_init_client(struct nfs_client *clp,
189 const struct rpc_timeout *timeparms, 189 const struct rpc_timeout *timeparms,
190 const char *ip_addr, 190 const char *ip_addr)
191 rpc_authflavor_t authflavour)
192{ 191{
193 char buf[INET6_ADDRSTRLEN + 1]; 192 char buf[INET6_ADDRSTRLEN + 1];
194 struct nfs_client *old; 193 struct nfs_client *old;
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 8651574a305b..ddc3e32178c3 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -1442,7 +1442,7 @@ struct nfs_rpc_ops {
1442 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *); 1442 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *);
1443 struct nfs_client * 1443 struct nfs_client *
1444 (*init_client) (struct nfs_client *, const struct rpc_timeout *, 1444 (*init_client) (struct nfs_client *, const struct rpc_timeout *,
1445 const char *, rpc_authflavor_t); 1445 const char *);
1446 void (*free_client) (struct nfs_client *); 1446 void (*free_client) (struct nfs_client *);
1447 struct nfs_server *(*create_server)(struct nfs_mount_info *, struct nfs_subversion *); 1447 struct nfs_server *(*create_server)(struct nfs_mount_info *, struct nfs_subversion *);
1448 struct nfs_server *(*clone_server)(struct nfs_server *, struct nfs_fh *, 1448 struct nfs_server *(*clone_server)(struct nfs_server *, struct nfs_fh *,