Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbd65a7e authored by Benny Halevy's avatar Benny Halevy Committed by J. Bruce Fields
Browse files

nfsd4: use local variable in nfs4svc_encode_compoundres



'cs' is already computed, re-use it.

Signed-off-by: default avatarBenny Halevy <bhalevy@panasas.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent fb4b698f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}