From patchwork Mon Nov 2 18:06:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trond Myklebust X-Patchwork-Id: 11874839 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A530D921 for ; Mon, 2 Nov 2020 18:17:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 885DA2222B for ; Mon, 2 Nov 2020 18:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604341041; bh=fsr9Yq0aHB/8I0Sy6bV3PWBbhDZuWG8/RtIDy++KQaM=; h=From:To:Subject:Date:List-ID:From; b=x/ghpMJsUSFe78ae0wkB4g2xjJTZZo71AqNGu6VO0FgF7b/9nZ8CK49k2DJZXm1RF qi8mFwwLcN7uJut7T/C6IPqGK2xeX917ug0uW1LITeZ0AMSGzasOFakLH31goGqaYP 5IjPJdW22ZravJ3sDzKHKQ4+3rnKU1h4V79k684I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725836AbgKBSRU (ORCPT ); Mon, 2 Nov 2020 13:17:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:40842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbgKBSRU (ORCPT ); Mon, 2 Nov 2020 13:17:20 -0500 Received: from localhost.localdomain (c-68-36-133-222.hsd1.mi.comcast.net [68.36.133.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 10A7120731 for ; Mon, 2 Nov 2020 18:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604341040; bh=fsr9Yq0aHB/8I0Sy6bV3PWBbhDZuWG8/RtIDy++KQaM=; h=From:To:Subject:Date:From; b=wmJUPEBBt5NtauJxXmowaGnyylN8WqnUUAoLBg4VqEnyrOITnuIPCPaLk+IjNZ8HA EpKWSfHblwAJ0msfmgf0NB4f961UK2nEG/BOaeR3+N/x6bBUET1fgUgp33thoVw3Cf MAx4VF4eKhwiFUyAIO4EsZJtHzRyHmIupW3ILCyQ= From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH 00/12] Readdir enhancements Date: Mon, 2 Nov 2020 13:06:46 -0500 Message-Id: <20201102180658.6218-1-trondmy@kernel.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust The following patch series performs a number of cleanups on the readdir code. It also adds support for 1MB readdir RPC calls on-the-wire, and modifies the caching code to ensure that we cache the entire contents of that 1MB call (instead of discarding the data that doesn't fit into a single page). Trond Myklebust (12): NFS: Ensure contents of struct nfs_open_dir_context are consistent NFS: Clean up readdir struct nfs_cache_array NFS: Clean up nfs_readdir_page_filler() NFS: Clean up directory array handling NFS: Don't discard readdir results NFS: Remove unnecessary kmap in nfs_readdir_xdr_to_array() NFS: Replace kmap() with kmap_atomic() in nfs_readdir_search_array() NFS: Simplify struct nfs_cache_array_entry NFS: Support larger readdir buffers NFS: More readdir cleanups NFS: nfs_do_filldir() does not return a value NFS: Reduce readdir stack usage fs/nfs/client.c | 4 +- fs/nfs/dir.c | 555 ++++++++++++++++++++++++----------------- fs/nfs/internal.h | 6 - include/linux/nfs_fs.h | 1 - 4 files changed, 325 insertions(+), 241 deletions(-)