dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Benny Halevy 2010-05-03 19:31:33 +03:00 committed by J. Bruce Fields
parent fb4b698fc7
commit dbd65a7e44
1 changed files with 2 additions and 2 deletions

View File

@ -3310,9 +3310,9 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo
if (cs->status != nfserr_replay_cache) {
nfsd4_store_cache_entry(resp);
dprintk("%s: SET SLOT STATE TO AVAILABLE\n", __func__);
resp->cstate.slot->sl_inuse = false;
cs->slot->sl_inuse = false;
}
nfsd4_put_session(resp->cstate.session);
nfsd4_put_session(cs->session);
}
return 1;
}