/* Including all fields other than the name, a LOCK4denied structure requires 8(clientid) + 4(namelen) + 8(offset) + 8(length) + 4(type) = 32 bytes.  */
static void nfsd4_encode_lock_denied(struct nfsd4_compoundres *resp, struct nfsd4_lock_denied *ld)
/* Including all fields other than the name, a LOCK4denied structure requires 8(clientid) + 4(namelen) + 8(offset) + 8(length) + 4(type) = 32 bytes.  */
static void nfsd4_encode_lock_denied(struct nfsd4_compoundres *resp, struct nfsd4_lock_denied *ld)
{
	__be32 *p;
	RESERVE_SPACE(32 + XDR_LEN(ld->ld_sop ? ld->ld_sop->so_owner.len : 0));
	WRITE64(ld->ld_start);
	WRITE64(ld->ld_length);
	WRITE32(ld->ld_type);
	if (ld->ld_sop) {
		WRITEMEM(&ld->ld_clientid, 8);
		WRITE32(ld->ld_sop->so_owner.len);
		WRITEMEM(ld->ld_sop->so_owner.data, ld->ld_sop->so_owner.len);
		kref_put(&ld->ld_sop->so_ref, nfs4_free_stateowner);
	}  else {
		WRITE64((u64)0);
		WRITE32(0);
	}
	ADJUST_ARGS();
}