From patchwork Wed Apr 5 20:59:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anna Schumaker X-Patchwork-Id: 13202540 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 675B0C7619A for ; Wed, 5 Apr 2023 20:59:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbjDEU7W (ORCPT ); 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 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(-)