Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1210545rdh; Mon, 25 Sep 2023 06:30:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiy8bXt64gbf6IHkBDRktF0VDxrU1CZLowq01piYkdYq3qfax4JBsOc29K8+EOseT63btM X-Received: by 2002:a17:903:2344:b0:1c6:2655:624b with SMTP id c4-20020a170903234400b001c62655624bmr1018304plh.61.1695648616367; Mon, 25 Sep 2023 06:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695648616; cv=none; d=google.com; s=arc-20160816; b=WNgjTwfsYnMXvQXqEooxE14KVfI61btGE2I3m/cHTw/ZfiONSLQXhcFyd1AThotSJj lQh3sDSZPykntwsIkFiLKdQsnBtglKb390qklUQW1+7Bd5MYKtk7EKosXASQdOh2yBAW 1Z/979fARSWMUXHggSAUgojKzxPeoyL2EZZrIjsAPUXNxPvKh8B3KcNyeN3vJTTUEIOi CWXf31MxcI+bK0Ir6VsW25K4wHKKBA9UVmdWBjnKJe7/IXHYjVqtS8CxDdligJkCV1pp R3GuIRf+cqDb7o8sgrDTWiuwGB8O9IMy880D2XW4K1d6lMDDxZyDzUxpSauh1erQpVBr 7Vgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=WVYDCu0H/4647zr8OKFOCGx7X2PqYM2RkicstyzEGRQ=; fh=v8a13lpFSZWlL4AptTEJnmXnlqoWXhGCGCgvrcnCT9I=; b=EnB2Yl+u0Bl116yJrPJ6qty7HoupsrfnivmgatsDgzSXsMs9GWxgreXc5RY3QNsUqp aDGw/KJpopY+4BEQr9bXZ3PLU14iDEdckorU2w2gAbZMQnsKZolspgI4iSU6Sqfy7uWq NQRdxXvrCfj9/TXW1z04+MdrkA+wbuGGL3UmtzQ3weVzPjJeo7e0cu15r1xMLGjFflyP rJMsEP2sNi5jph/t/KRTmKcu+lDWo7i9DCZpxayA2FSqolvTLXFaCDTmLtBn+v1iJ21n Sj1DEYDvDRnrxX8NMp8DB+zqsK4L7+L459C+1iv9uuS4uwKkaBU6iY80bkzSjyssIteT VEmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ep7NivGT; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m6-20020a170902db0600b001bdafae4b7dsi3213253plx.43.2023.09.25.06.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 06:30:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ep7NivGT; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id BBE9A8082CDD; Mon, 25 Sep 2023 06:27:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbjIYN1l (ORCPT + 99 others); Mon, 25 Sep 2023 09:27:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbjIYN1k (ORCPT ); Mon, 25 Sep 2023 09:27:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3984510A for ; Mon, 25 Sep 2023 06:27:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C060C433C7; Mon, 25 Sep 2023 13:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695648453; bh=bR891B5H/TkKkuMjA9M1E1ueoc1jMi59saEQfL1YZWs=; h=Subject:From:To:Cc:Date:From; b=ep7NivGTDy+yePWBb8aGjiVSgDoOBaF5lNNWGeFezHsn/kKWAvfc3ABNFyuc5a7xC 6lC4GrDAW48nnQaOeW7n9/CNaQs1FpYj4fsRIDmnlgmnsEAprrc6xG8tQs7aKP0bDb 7O1bkZNTme74gInS6ETqXFkanmZNwvbZzJUCGebc51H60IEWr6GA2JszQ4MY5N4E8t Bd/jgx5VZ3Uvfy2Nw+/9+w1Q9xb3O8XlwCr98V2db5S15bFkEw2K5qP7uabIsJKNw5 4I+ykYoHVJB4lnWWjxDYqYWjKCOwoO8mqum27twkM6IyUd/3aXqrY4/rYMPJ1XSLOP RKR6VJw9+s1Kg== Subject: [PATCH v1 0/8] Clean up XDR encoders for pNFS operations From: Chuck Lever To: linux-nfs@vger.kernel.org Cc: Chuck Lever Date: Mon, 25 Sep 2023 09:27:32 -0400 Message-ID: <169564827064.6013.5014460767978657478.stgit@klimt.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 06:27:38 -0700 (PDT) Tidy up the server-side XDR encoders for pNFS-related operations. Note that this does not touch the layout driver code; that can be done later. Series applies to nfsd-next. See topic branch "nfsd4-encoder-overhaul" in this repo: https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git --- Chuck Lever (8): NFSD: Add nfsd4_encode_count4() NFSD: Clean up nfsd4_encode_stateid() NFSD: Make @lgp parameter of ->encode_layoutget a const pointer NFSD: Clean up nfsd4_encode_layoutget() NFSD: Clean up nfsd4_encode_layoutcommit() NFSD: Clean up nfsd4_encode_layoutreturn() NFSD: Make @gdev parameter of ->encode_getdeviceinfo a const pointer NFSD: Clean up nfsd4_encode_getdeviceinfo() fs/nfsd/blocklayoutxdr.c | 6 +- fs/nfsd/blocklayoutxdr.h | 4 +- fs/nfsd/flexfilelayoutxdr.c | 6 +- fs/nfsd/flexfilelayoutxdr.h | 4 +- fs/nfsd/nfs4layouts.c | 6 +- fs/nfsd/nfs4proc.c | 4 +- fs/nfsd/nfs4xdr.c | 206 ++++++++++++++++++++---------------- fs/nfsd/pnfs.h | 6 +- fs/nfsd/xdr4.h | 7 +- 9 files changed, 135 insertions(+), 114 deletions(-) -- Chuck Lever