/* Encode the replay sequence operation from the slot values. If cachethis is FALSE encode the uncached rep error on the next operation which sets resp->p and increments resp->opcnt for nfs4svc_encode_compoundres.  */
static __be32 nfsd4_enc_sequence_replay(struct nfsd4_compoundargs *args, struct nfsd4_compoundres *resp)
/* Encode the replay sequence operation from the slot values. If cachethis is FALSE encode the uncached rep error on the next operation which sets resp->p and increments resp->opcnt for nfs4svc_encode_compoundres.  */
static __be32 nfsd4_enc_sequence_replay(struct nfsd4_compoundargs *args, struct nfsd4_compoundres *resp)
{
	struct nfsd4_op *op;
	struct nfsd4_slot *slot = resp->cstate.slot;
	dprintk("--> %s resp->opcnt %d cachethis %u \n", __func__,
		resp->opcnt, resp->cstate.slot->sl_cachethis);
	op = &args->ops[resp->opcnt - 1];
	nfsd4_encode_operation(resp, op);
	if (args->opcnt > 1 && slot->sl_cachethis == 0) {
		op = &args->ops[resp->opcnt++];
		op->status = nfserr_retry_uncached_rep;
		nfsd4_encode_operation(resp, op);
	}
	return op->status;
}