Skip to content

Commit

Permalink
nfsd4: use local variable in nfs4svc_encode_compoundres
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Benny Halevy authored and J. Bruce Fields committed May 4, 2010
1 parent fb4b698 commit dbd65a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfsd/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dbd65a7

Please sign in to comment.