Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1249004rwl; Wed, 5 Apr 2023 14:08:55 -0700 (PDT) X-Google-Smtp-Source: AKy350bNBTkJdYn2z+5JP9+caJ8usOOhbFpsDsAzQs+jGjK5sC64t2BG36G/TDBnw0RhZK5YEF9Q X-Received: by 2002:a17:906:3c4d:b0:8af:2107:6ce5 with SMTP id i13-20020a1709063c4d00b008af21076ce5mr4422549ejg.35.1680728934974; Wed, 05 Apr 2023 14:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680728934; cv=none; d=google.com; s=arc-20160816; b=J21USNE8layR/+RcG8QO6zqhxNCy8XstuJQfrLrtBOmqTGfc6ah1DWEb7NG+AbDIfH TVDRjH0ezAt967dgYK9pRWyQiiN273sMxqG16bmn/k9XGNeYygT0TSWtUPaBrDE7pzHb o/uBIQWsLyVPnT/hJn28f9I55hjqrO5ypP4VR2wcg+FZQDc0Q1+A7wQtfCfKZWCHnLmj 8TEOgO+V2usjPp6s21fJzD17qEIUoqzd6+3pxftW0iFUVllxwusrf/9b6mI9YuYInMRq 0nuYXv4554dWNEwJbpea/gFr0/l10lUhkLSAivYmN0WHafR8qwoGE/453slYUusXTvcJ 07zQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=nFTSt5rAJoEYHIZGO9Gf8ofTOz/8J1JcXpTRPgdUT2Q=; b=mveOPyN54PsGKcl/RZIX2T6sHZRSk9riEfb27fUsazhdAWYk7+FObMfsqhAs4r570s 2t68EpBrob6SFUBsJe6W4t2E4pAEzRifxtJ7XfsUjmKL1/7kBriw2UMgTznN/a9kN/m9 5FsAkSjMdF2SgXyHy7qcTcv6AwF2VccPXlrrmChyGCK+xl2x4eLPhXWkk1JbHN/+eBDB 4Gua4Hk5W69SjzICds9dF+0S4kyGyVqvjHn7Z6g237Z12kYBYo078AKxR3fSmbC0Nh9x L//lx4HKQitXO+VX1kqYxwHH3ySTk26Q3Siy2ZtmzNspb5aPUywt3RJ46E4jztkJauf7 uh8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PwoTmzrL; 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 q18-20020a17090622d200b0093083e8ec20si4183139eja.56.2023.04.05.14.08.29; Wed, 05 Apr 2023 14:08:54 -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=PwoTmzrL; 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 S229541AbjDEU7W (ORCPT + 99 others); Wed, 5 Apr 2023 16:59:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjDEU7V (ORCPT ); Wed, 5 Apr 2023 16:59:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3081D46B0 for ; Wed, 5 Apr 2023 13:59:21 -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 BEECA62810 for ; Wed, 5 Apr 2023 20:59:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C49BCC433EF; Wed, 5 Apr 2023 20:59:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680728360; bh=hOFLN4Jka1h3g/ABDejYruRfQ/KGXWvzOK4t7ugUKng=; h=From:To:Cc:Subject:Date:From; b=PwoTmzrLgt6szECUA2QXCUDts1HFHvVYdyeiZxknSd9GKPVYtuKXGcPthDyGXcDjE ai1Za8IQxDk/PTHnXFnbfnWL30iVJIvGCM0xqjxthNL3d8/9v0CLSdYsgjNjnz2Agn XLHJYTfGuW6VRK1PcmmjdNdT46tv0Ap4nRdDuPAxaNz+FRH7tZr4v+++HvEQBl1Vmy NhcNRRpk9FWTpThjVfmwLx0qLrd4D7v7Lea70CCL0jv25ot+146EKS4OmyrzmcS6QH qBevvgOojKoJpgjpK621nm0Nv9XkGoJin25fTT4sEF8twRXbCt8sDv9YXPLbB3Xb1J hG1VPIOCTeBkA== From: Anna Schumaker To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com Cc: anna@kernel.org Subject: [PATCH 0/2] NFS: Convert readdir to use folios Date: Wed, 5 Apr 2023 16:59:16 -0400 Message-Id: <20230405205918.228394-1-anna@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Anna Schumaker This is a 1-1 update of the readdir code to folios instead of pages during decode. One thing I'm still thinking about is converting the array-of-folios into a single compound-page folio, but this would involve a larger rewrite due to how the current code is structured around grabbing cache pages as needed (and as far as I know, the pagecache is still oriented around single pages, not compound pages). Thoughts? Anna Anna Schumaker (2): NFS: Convert the readdir array-of-pages into an array-of-folios NFS: Convert readdir page array functions to use a folio fs/nfs/dir.c | 300 +++++++++++++++++++++++++-------------------------- 1 file changed, 149 insertions(+), 151 deletions(-) -- 2.40.0