aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-09-20 16:15:24 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-10-08 10:45:52 -0400
commit516285ebe0efadc40b914a0e61a913a390604810 (patch)
tree4d98f05bba8768fc589c6fa84fcb50224ce33b53
parent2598ed344586cf3612bfbd33041527c55543acfe (diff)
NFSv4: nfs4_async_handle_error should take a non-const nfs_server
For symmetry with the synchronous handler, and so that we can potentially handle errors such as NFS4ERR_BADNAME. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
-rw-r--r--fs/nfs/nfs4proc.c6
-rw-r--r--include/linux/nfs_xdr.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index d044c7b11ff7..ae5cde621954 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -78,7 +78,7 @@ struct nfs4_opendata;
78static int _nfs4_proc_open(struct nfs4_opendata *data); 78static int _nfs4_proc_open(struct nfs4_opendata *data);
79static int _nfs4_recover_proc_open(struct nfs4_opendata *data); 79static int _nfs4_recover_proc_open(struct nfs4_opendata *data);
80static int nfs4_do_fsinfo(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *); 80static int nfs4_do_fsinfo(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *);
81static int nfs4_async_handle_error(struct rpc_task *, const struct nfs_server *, struct nfs4_state *, long *); 81static int nfs4_async_handle_error(struct rpc_task *, struct nfs_server *, struct nfs4_state *, long *);
82static void nfs_fixup_referral_attributes(struct nfs_fattr *fattr); 82static void nfs_fixup_referral_attributes(struct nfs_fattr *fattr);
83static int nfs4_proc_getattr(struct nfs_server *, struct nfs_fh *, struct nfs_fattr *, struct nfs4_label *label); 83static int nfs4_proc_getattr(struct nfs_server *, struct nfs_fh *, struct nfs_fattr *, struct nfs4_label *label);
84static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr, struct nfs4_label *label); 84static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr, struct nfs4_label *label);
@@ -4982,7 +4982,7 @@ out:
4982 4982
4983 4983
4984static int 4984static int
4985nfs4_async_handle_error(struct rpc_task *task, const struct nfs_server *server, 4985nfs4_async_handle_error(struct rpc_task *task, struct nfs_server *server,
4986 struct nfs4_state *state, long *timeout) 4986 struct nfs4_state *state, long *timeout)
4987{ 4987{
4988 struct nfs_client *clp = server->nfs_client; 4988 struct nfs_client *clp = server->nfs_client;
@@ -5559,7 +5559,7 @@ struct nfs4_unlockdata {
5559 struct nfs4_lock_state *lsp; 5559 struct nfs4_lock_state *lsp;
5560 struct nfs_open_context *ctx; 5560 struct nfs_open_context *ctx;
5561 struct file_lock fl; 5561 struct file_lock fl;
5562 const struct nfs_server *server; 5562 struct nfs_server *server;
5563 unsigned long timestamp; 5563 unsigned long timestamp;
5564}; 5564};
5565 5565
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 52faf7e96c65..53f2acc68baf 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -528,7 +528,7 @@ struct nfs4_delegreturnargs {
528struct nfs4_delegreturnres { 528struct nfs4_delegreturnres {
529 struct nfs4_sequence_res seq_res; 529 struct nfs4_sequence_res seq_res;
530 struct nfs_fattr * fattr; 530 struct nfs_fattr * fattr;
531 const struct nfs_server *server; 531 struct nfs_server *server;
532}; 532};
533 533
534/* 534/*
@@ -601,7 +601,7 @@ struct nfs_removeargs {
601 601
602struct nfs_removeres { 602struct nfs_removeres {
603 struct nfs4_sequence_res seq_res; 603 struct nfs4_sequence_res seq_res;
604 const struct nfs_server *server; 604 struct nfs_server *server;
605 struct nfs_fattr *dir_attr; 605 struct nfs_fattr *dir_attr;
606 struct nfs4_change_info cinfo; 606 struct nfs4_change_info cinfo;
607}; 607};
@@ -619,7 +619,7 @@ struct nfs_renameargs {
619 619
620struct nfs_renameres { 620struct nfs_renameres {
621 struct nfs4_sequence_res seq_res; 621 struct nfs4_sequence_res seq_res;
622 const struct nfs_server *server; 622 struct nfs_server *server;
623 struct nfs4_change_info old_cinfo; 623 struct nfs4_change_info old_cinfo;
624 struct nfs_fattr *old_fattr; 624 struct nfs_fattr *old_fattr;
625 struct nfs4_change_info new_cinfo; 625 struct nfs4_change_info new_cinfo;