Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1116990rwd; Wed, 7 Jun 2023 11:11:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5E36WTO/TGyhRfv7z645nmh+gBMCucK50Ll0Lb+2rkL9fMi0laWc0+f+WCbr5nAwdQKjak X-Received: by 2002:a17:90a:4c84:b0:253:3975:7a37 with SMTP id k4-20020a17090a4c8400b0025339757a37mr17876405pjh.9.1686161515578; Wed, 07 Jun 2023 11:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686161515; cv=none; d=google.com; s=arc-20160816; b=I7PFjYWlU+dt1PQV+9aAPsYyJDmrl3v5eGKSvcAWUxES6OrEy3/KIBOXaVsNeJzaaV Snlrm3euRYi8dHAx51Oue34e29d2yBkhJRXmt6IpvvCGvH+uMrHIh1/k0Hhi5yFonhez oJVyES8qG0Y3MLVZoEVHM9ElMeCsBVKG/RlUs7od6fz35YiGAKQ2JwvspLiXRxdxe7v9 K3TnLUgXCUyk8IW6OcR3baxNJuXjaVsreZ2ED4xe1T+WbdZjQ2rInT9l/OkMFShc9vzh QbGQtWCbXUYb1P1pY7qg2AgVc0lqD5S1LlTfacfewBTtgw3oM+XbMt2Z2pi1klIROhKY y8oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=cc3S3GXCb2gXKuoRbbSVhX7IcBJFfQbWFKYxHnwFePM=; b=fbPp7Kb2/7pJtyrVypTqp+6xzLF+0PtSpvwfGg+91sbh9N6JqKjoucIfUPxg1BqT3x GVSlpP2RdSYLzt6cNr7Yg+VrOacxpjWHNmhjd+SZs79h8mqppyT6N9qgC0GFn1sZ29Up TsefZCamnlMXJR50pBwgUzbrMrrpnfpBseYTofNPAN64jqa5Iq+TF49DGTvpPRmOYnEZ UhWGlZaB2XCrczP9f0anYeRw1WC5JcE1pqRL9oobXQ+dKBw+/swnahOtxVj/BeWRsRxM Tw1cqBipbH3HcCaMGCJjuDw+EeqAdAVP1itR8FwPk2KhyQ0cYRv0aYQd9/gJOVhqCNiz amCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oark1lOF; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a17090a8b8900b002535fa552f2si1426883pjn.85.2023.06.07.11.11.43; Wed, 07 Jun 2023 11:11:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oark1lOF; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232415AbjFGSEv (ORCPT + 99 others); Wed, 7 Jun 2023 14:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232178AbjFGSEu (ORCPT ); Wed, 7 Jun 2023 14:04:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B22F1FC2 for ; Wed, 7 Jun 2023 11:04:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7F0E36397F for ; Wed, 7 Jun 2023 18:04:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B079C433EF; Wed, 7 Jun 2023 18:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686161088; bh=IyQ+gPo3Kc9zOP8I9PAE7KasHd5dnHvWgv9zNekzAgk=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Oark1lOFXxSTnKP6FekzUOVK104PLRghpOdwgFgcC7lN5rjnbs7YAbILy97hRURTI I1CbdoxhwMaeOlcVAq+pOqJvcgRAL8myY74+UzgehpDJuszP9j7p0D0g/9HaTxq0La h0iP6zjz15t8vAWstiHqbsphog77207TeFcuW1rXVs9VmbWVRNHPRfxMSAXURPPOfQ LDW/dP10Q9geFyLEDKcXZNn8kbXz+Z/kfpN/qvzOjtO+NTZ9PNKzaIZSiaZzBR1xqf 5RJuFEKRGcuGXmUIVOKTsNPvSVzCyk0zjeK0poZbMNWEKXUFa3dlr+xMq+lSlX+Kgl RmlZ91wrvvDuA== Message-ID: <66837f03e0f3499cab9786e26c4525109ec074db.camel@kernel.org> Subject: Re: [PATCH 1/1] NFSD: add encoding of op_recall flag for write delegation From: Jeff Layton To: Dai Ngo , chuck.lever@oracle.com Cc: linux-nfs@vger.kernel.org Date: Wed, 07 Jun 2023 14:04:47 -0400 In-Reply-To: <1686094862-13108-1-git-send-email-dai.ngo@oracle.com> References: <1686094862-13108-1-git-send-email-dai.ngo@oracle.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3 (3.48.3-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, 2023-06-06 at 16:41 -0700, Dai Ngo wrote: > Modified nfsd4_encode_open to encode the op_recall flag properly > for OPEN result with write delegation granted. >=20 > Signed-off-by: Dai Ngo > --- > fs/nfsd/nfs4xdr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c > index 4590b893dbc8..d7e46b940cce 100644 > --- a/fs/nfsd/nfs4xdr.c > +++ b/fs/nfsd/nfs4xdr.c > @@ -3975,7 +3975,7 @@ nfsd4_encode_open(struct nfsd4_compoundres *resp, _= _be32 nfserr, > p =3D xdr_reserve_space(xdr, 32); > if (!p) > return nfserr_resource; > - *p++ =3D cpu_to_be32(0); > + *p++ =3D cpu_to_be32(open->op_recall); > =20 > /* > * TODO: space_limit's in delegations Nice catch! Reviewed-by: Jeff Layton