aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-09-23 17:20:02 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-09-26 17:35:25 -0400
commit2a74aba799bfbc02977b69400b7bf4d2850aea79 (patch)
treed1119f4dbcd05087f7c2ba10203d6842e4252655 /fs/nfsd/nfs4callback.c
parent8335ebd94b3f5bed7875cc35848bbe46d8381695 (diff)
nfsd4: move client * to nfs4_stateid, add init_stid helper
This will be convenient. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r--fs/nfsd/nfs4callback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 93b5e405ad38..de018ecadae6 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -787,7 +787,7 @@ static void nfsd4_cb_prepare(struct rpc_task *task, void *calldata)
787{ 787{
788 struct nfsd4_callback *cb = calldata; 788 struct nfsd4_callback *cb = calldata;
789 struct nfs4_delegation *dp = container_of(cb, struct nfs4_delegation, dl_recall); 789 struct nfs4_delegation *dp = container_of(cb, struct nfs4_delegation, dl_recall);
790 struct nfs4_client *clp = dp->dl_client; 790 struct nfs4_client *clp = dp->dl_stid.sc_client;
791 u32 minorversion = clp->cl_minorversion; 791 u32 minorversion = clp->cl_minorversion;
792 792
793 cb->cb_minorversion = minorversion; 793 cb->cb_minorversion = minorversion;
@@ -809,7 +809,7 @@ static void nfsd4_cb_done(struct rpc_task *task, void *calldata)
809{ 809{
810 struct nfsd4_callback *cb = calldata; 810 struct nfsd4_callback *cb = calldata;
811 struct nfs4_delegation *dp = container_of(cb, struct nfs4_delegation, dl_recall); 811 struct nfs4_delegation *dp = container_of(cb, struct nfs4_delegation, dl_recall);
812 struct nfs4_client *clp = dp->dl_client; 812 struct nfs4_client *clp = dp->dl_stid.sc_client;
813 813
814 dprintk("%s: minorversion=%d\n", __func__, 814 dprintk("%s: minorversion=%d\n", __func__,
815 clp->cl_minorversion); 815 clp->cl_minorversion);
@@ -832,7 +832,7 @@ static void nfsd4_cb_recall_done(struct rpc_task *task, void *calldata)
832{ 832{
833 struct nfsd4_callback *cb = calldata; 833 struct nfsd4_callback *cb = calldata;
834 struct nfs4_delegation *dp = container_of(cb, struct nfs4_delegation, dl_recall); 834 struct nfs4_delegation *dp = container_of(cb, struct nfs4_delegation, dl_recall);
835 struct nfs4_client *clp = dp->dl_client; 835 struct nfs4_client *clp = dp->dl_stid.sc_client;
836 struct rpc_clnt *current_rpc_client = clp->cl_cb_client; 836 struct rpc_clnt *current_rpc_client = clp->cl_cb_client;
837 837
838 nfsd4_cb_done(task, calldata); 838 nfsd4_cb_done(task, calldata);
@@ -1006,7 +1006,7 @@ void nfsd4_do_callback_rpc(struct work_struct *w)
1006void nfsd4_cb_recall(struct nfs4_delegation *dp) 1006void nfsd4_cb_recall(struct nfs4_delegation *dp)
1007{ 1007{
1008 struct nfsd4_callback *cb = &dp->dl_recall; 1008 struct nfsd4_callback *cb = &dp->dl_recall;
1009 struct nfs4_client *clp = dp->dl_client; 1009 struct nfs4_client *clp = dp->dl_stid.sc_client;
1010 1010
1011 dp->dl_retries = 1; 1011 dp->dl_retries = 1;
1012 cb->cb_op = dp; 1012 cb->cb_op = dp;