Commit c585d6f2 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] nfsd4: trivial callback cleanup

Whitespace, etc.
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fa011dbc
...@@ -309,7 +309,7 @@ nfs4_xdr_dec_cb_recall(struct rpc_rqst *rqstp, u32 *p) ...@@ -309,7 +309,7 @@ nfs4_xdr_dec_cb_recall(struct rpc_rqst *rqstp, u32 *p)
if (status) if (status)
goto out; goto out;
status = decode_cb_op_hdr(&xdr, OP_CB_RECALL); status = decode_cb_op_hdr(&xdr, OP_CB_RECALL);
out : out:
return status; return status;
} }
...@@ -545,24 +545,20 @@ nfs4_cb_recall_done(struct nfs4_cb_recall *cbr, int status) ...@@ -545,24 +545,20 @@ nfs4_cb_recall_done(struct nfs4_cb_recall *cbr, int status)
void void
nfsd4_cb_recall(struct nfs4_delegation *dp) nfsd4_cb_recall(struct nfs4_delegation *dp)
{ {
struct nfs4_client *clp; struct nfs4_client *clp = dp->dl_client;
struct rpc_clnt *clnt; struct rpc_clnt *clnt = clp->cl_callback.cb_client;
struct nfs4_cb_recall *cbr = &dp->dl_recall;
struct rpc_message msg = { struct rpc_message msg = {
.rpc_proc = &nfs4_cb_procedures[NFSPROC4_CLNT_CB_RECALL], .rpc_proc = &nfs4_cb_procedures[NFSPROC4_CLNT_CB_RECALL],
.rpc_argp = cbr,
.rpc_resp = cbr,
}; };
struct nfs4_cb_recall *cbr = &dp->dl_recall;
int status; int status;
dprintk("NFSD: nfsd4_cb_recall NFS4_enc_cb_recall_sz %d NFS4_dec_cb_recall_sz %d \n",NFS4_enc_cb_recall_sz,NFS4_dec_cb_recall_sz);
clp = dp->dl_client;
clnt = clp->cl_callback.cb_client;
if ((!atomic_read(&clp->cl_callback.cb_set)) || !clnt) if ((!atomic_read(&clp->cl_callback.cb_set)) || !clnt)
return; return;
msg.rpc_argp = cbr; msg.rpc_cred = nfsd4_lookupcred(clp, 0);
msg.rpc_resp = cbr;
msg.rpc_cred = nfsd4_lookupcred(clp,0);
if (IS_ERR(msg.rpc_cred)) if (IS_ERR(msg.rpc_cred))
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment