diff options
author | Benny Halevy <bhalevy@panasas.com> | 2010-05-03 12:31:33 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2010-05-04 10:10:36 -0400 |
commit | dbd65a7e44fff4741a0b2c84bd6bace85d22c242 (patch) | |
tree | cc049fb7838574ce7c43fc53ba7b7891236b9bc7 /fs/nfsd/nfs4xdr.c | |
parent | fb4b698fc78347419aa9ae7114e1375f92107500 (diff) |
nfsd4: use local variable in nfs4svc_encode_compoundres
'cs' is already computed, re-use it.
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 05bc5bd63c95..b27bcf33107c 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -3310,9 +3310,9 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo | |||
3310 | if (cs->status != nfserr_replay_cache) { | 3310 | if (cs->status != nfserr_replay_cache) { |
3311 | nfsd4_store_cache_entry(resp); | 3311 | nfsd4_store_cache_entry(resp); |
3312 | dprintk("%s: SET SLOT STATE TO AVAILABLE\n", __func__); | 3312 | dprintk("%s: SET SLOT STATE TO AVAILABLE\n", __func__); |
3313 | resp->cstate.slot->sl_inuse = false; | 3313 | cs->slot->sl_inuse = false; |
3314 | } | 3314 | } |
3315 | nfsd4_put_session(resp->cstate.session); | 3315 | nfsd4_put_session(cs->session); |
3316 | } | 3316 | } |
3317 | return 1; | 3317 | return 1; |
3318 | } | 3318 | } |