From patchwork Wed Oct 4 13:41:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13408793 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB5C4E7B616 for ; Wed, 4 Oct 2023 13:41:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbjJDNlo (ORCPT ); Wed, 4 Oct 2023 09:41:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233066AbjJDNlo (ORCPT ); Wed, 4 Oct 2023 09:41:44 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAE189B for ; Wed, 4 Oct 2023 06:41:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5751FC433C8; Wed, 4 Oct 2023 13:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696426899; bh=XMsyQX/8tWuhjl7HpCKp6GnBkM1FKgkEPIsk60F3YzQ=; h=Subject:From:To:Cc:Date:From; b=pTIbVjB/a4t5JFH1LUWh+oKHPh9DOxYkRrWX/m2wMnDQ7LPYxF4vxt2wmz/zr3YeK chs4oM+T9EKk+ddWrtMtzuNduUxaYaOsZ5Tzeznvo1tbP28yLwu7coA74QcCZ2VilB 7RXtRiigv4KfsKkLbK1Mf1DMYXM8zPDTu5DHdcWf05o60Ju29SLAk9FRX3gBT/O2Wn eyf5IlEa2uPAR+RH4fIh1yAnMGKZD79Fi9pdz+rOF551DfLN81ivAx0g7rNfpr+wC3 2LErZdZwrXcFwvi3Ddj+mq9+unybknL3VPQ9GqfR6OGzeaWaWzAYiyRxhwH9XzmDxt d5zjrxZtCadVg== Subject: [PATCH v1 0/5] Clean up XDR encoders for NFSv4 READDIR From: Chuck Lever To: linux-nfs@vger.kernel.org Cc: Chuck Lever Date: Wed, 04 Oct 2023 09:41:38 -0400 Message-ID: <169642681764.7503.2925922561588558142.stgit@klimt.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Tidy up the server-side XDR encoders for READDIR results and directory entries. 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 Reviewed-by: Jeff Layton --- Chuck Lever (5): NFSD: Rename nfsd4_encode_dirent() NFSD: Clean up nfsd4_encode_rdattr_error() NFSD: Add an nfsd4_encode_nfs_cookie4() helper NFSD: Clean up nfsd4_encode_entry4() NFSD: Clean up nfsd4_encode_readdir() fs/nfsd/nfs4xdr.c | 200 +++++++++++++++++++++++----------------------- fs/nfsd/xdr4.h | 3 + 2 files changed, 104 insertions(+), 99 deletions(-) -- Chuck Lever