Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2216214pxp; Sun, 13 Mar 2022 12:01:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyomyQiZsFie+3Gb9iTX7ojQG6aiMQcRviYtoXYEBRUXAbzs9DcrRD5g9Kv/wZdYrq2hvs X-Received: by 2002:a17:902:6b06:b0:14d:8b58:5432 with SMTP id o6-20020a1709026b0600b0014d8b585432mr19676745plk.75.1647198099174; Sun, 13 Mar 2022 12:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647198099; cv=none; d=google.com; s=arc-20160816; b=cJ3SG88s2Wgh3W5WAQVc5ayMpEWEZWFa18vSP8bfnI5g3q+mNR8OJ5821Wy4u6xtVU OI4dUJEl/DZnVxh2r6qfwW7UutF039KvM1tsAWTgez0NZzizfqk/UEm/9C0QAvPjzd1O dIpX0/CaCFG54zQBy3cPBpW/71PwW572nSLsps/ApzXyyLS4+B+llsjEAno1uXouIxGg uj25bt8ArGBMdcIsJz5YaiFqgjXSbHLUSmQMtvutLeJVEgnFlt7VGL2lWsptEmvVVL1X JQz+dBq0ENe0uf1URk6ozjbpjQTB4lxJ0ZxhyAzlpzsrmByEPT7d9Lmf+G1adZIIY23D FQIw== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=naLiSiab//zAdz+CV3aoIzkwVg1rAEWC5FRoHs6Tvew=; b=J5mzA3vbAMvWUgbJTp9h4xkysEYF36DBwTuRRjxEIsRnYoa2GC5s/PJ8lVP/ZQX40Y +rx8xmCl6kweUExtUG6GytFmL7fhjj+e6L2uipHZOUj7FoJ7ehY/kRLjoUdAhDDJd1JG sfv6bILyIJDkmFdXwRSZWTrBQfKwP/hIPqrd6d0YwM5EpoO2p8tBrK8dXHbHhXHyY/WQ 6VdcvI3xpE226GRjjXtGDVsPbNaai/luDBv5nYa5WnHDfoVJ+r4uu5fAiydhhMHV6e/J Zb7tjNXYKrczYajTATFmZ5wxbiGDKwClj2HxCrVsp2oxngg2UJJcrOQjCRrAIGp1O1f4 W1Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XuSWLTaS; 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 jx1-20020a17090b46c100b001bfa1ab8030si10101332pjb.119.2022.03.13.12.01.05; Sun, 13 Mar 2022 12:01:39 -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=XuSWLTaS; 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 S235096AbiCMRNW (ORCPT + 99 others); Sun, 13 Mar 2022 13:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235115AbiCMRNT (ORCPT ); Sun, 13 Mar 2022 13:13:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C93013A1D8 for ; Sun, 13 Mar 2022 10:12:11 -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 17B9461228 for ; Sun, 13 Mar 2022 17:12:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62FF2C340F3 for ; Sun, 13 Mar 2022 17:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647191530; bh=ejgalJnlUB3KmMw+rFLeJV/y/rcOd8SfGOkfOcqCQ5o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XuSWLTaSyUyBvLM2I0eIRZKrRlnjgAL2qbRSjtpIUQ0SgqcTIoI9MSSWtl0TVjsZ4 qyWWWWYLSrz/MjwAhDwq0p3GHOEMpsVpmG7xGaddVEhwsrpOhW95Hfot1jGdkeDDKB FPbmnjoGSTzW9c/Yg0H9BU9dm+5loi2Tq6T9K4xSzZ7hF/Wnz+R7ybvNIpW2z4QaVl hvZ9ZF8sgiveh663uC3h7YUrc6MXGeuVHulRRZb0WUyUvKE3zzsuLq7nPthJgZ3ar+ k8xnxedenZTAYUiDNHrsUMlmEjfvy1pKdkmtR7FY4dgwf8QBFe93NGeLb42vW6V8CU MHZ2A54BAZWKw== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH v10 17/26] NFS: Readdirplus can't help lookup for case insensitive filesystems Date: Sun, 13 Mar 2022 13:05:48 -0400 Message-Id: <20220313170557.5940-18-trondmy@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220313170557.5940-17-trondmy@kernel.org> References: <20220313170557.5940-1-trondmy@kernel.org> <20220313170557.5940-2-trondmy@kernel.org> <20220313170557.5940-3-trondmy@kernel.org> <20220313170557.5940-4-trondmy@kernel.org> <20220313170557.5940-5-trondmy@kernel.org> <20220313170557.5940-6-trondmy@kernel.org> <20220313170557.5940-7-trondmy@kernel.org> <20220313170557.5940-8-trondmy@kernel.org> <20220313170557.5940-9-trondmy@kernel.org> <20220313170557.5940-10-trondmy@kernel.org> <20220313170557.5940-11-trondmy@kernel.org> <20220313170557.5940-12-trondmy@kernel.org> <20220313170557.5940-13-trondmy@kernel.org> <20220313170557.5940-14-trondmy@kernel.org> <20220313170557.5940-15-trondmy@kernel.org> <20220313170557.5940-16-trondmy@kernel.org> <20220313170557.5940-17-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Trond Myklebust If the filesystem is case insensitive, then readdirplus can't help with cache misses, since it won't return case folded variants of the filename. Signed-off-by: Trond Myklebust --- fs/nfs/dir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 098fc1bdaac8..dcfc44411787 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -696,6 +696,8 @@ void nfs_readdir_record_entry_cache_miss(struct inode *dir) static void nfs_lookup_advise_force_readdirplus(struct inode *dir) { + if (nfs_server_capable(dir, NFS_CAP_CASE_INSENSITIVE)) + return; nfs_readdir_record_entry_cache_miss(dir); } -- 2.35.1