Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2515319pxm; Mon, 28 Feb 2022 00:06:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaiCwaZsnvDMCwC4qYEhI3SI/x/hZPFiydYQsMuWvVfUyALo8vSeted08TBPtOHBnmkvQh X-Received: by 2002:a17:902:ea02:b0:14f:fd0e:e433 with SMTP id s2-20020a170902ea0200b0014ffd0ee433mr20023635plg.24.1646035607259; Mon, 28 Feb 2022 00:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646035607; cv=none; d=google.com; s=arc-20160816; b=OTa23+m7xwbZvOZbYJydHr1mKPsRpGW+6Zx/mezTUys4vVybW/tMn9x/Muz/vSCoJF GTHOiSjcltjUl75CrdAjjKMa3tHFPdngCP/pR1Q85eV+vAmMxi2sdDlaYs9xz2px6Ky5 zIqSfQv9NF1RKDReGkWhMIkAFjsyli6Sjtc/5YBXHUpJ2SAG7HMR+f69qeUkWGCGvgBq U1ZIe98M9Z6EUvOBcvjQTZJ69+TP3iZ/i/X5gVYrpvmY3ZCKvoKJBN25YKT878+CFVZN thd56Hvj4GVulU8Clx/yU1cIkqQ6/g91LTGO8Bn8PACZbi4566+T1uQoGLZDq2rw6UT7 Ly9w== 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=V+iEyDj/iVBJYlvAcvYlDjdegYjTEt4DG+Kq25K4pxI=; b=e/uoCo4rG7Jn1IqDrrqCMVR1WYUHjC1PqKJ+vAqxa/e97l6rG1KakBaU44qx6TbT6B 8d+TgqzeiVm+NURXW9KsBsqGghRWpt/79fA/Ue6FN+mVgrLEFhPH2zJDGWlrhT7k5AT7 Q4pQA3XicNJB7SU6cRfD4tyy5jWo0wTRjFVqCbK8J7RPOBpqe5ycYOZFZpZ9KdaaYc/W 6jRJtQflAjBT2Q49hbgkpSC4h2HjoAKJ7cAFD36RZ9c1RWkKfcl+Nx54y/a+knwAdxcx jRvZmOq2gbus2b1lixideB0kvhqol92u/tZ6ZRm/tcNWQKGEwtJPbXYr8nnHPgFwJzl5 Urig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y+uJm4RK; 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 t64-20020a638143000000b0037438c47664si8427823pgd.753.2022.02.28.00.06.19; Mon, 28 Feb 2022 00:06:47 -0800 (PST) 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=Y+uJm4RK; 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 S232207AbiB0XTV (ORCPT + 99 others); Sun, 27 Feb 2022 18:19:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232202AbiB0XTS (ORCPT ); Sun, 27 Feb 2022 18:19:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B26822504 for ; Sun, 27 Feb 2022 15:18:41 -0800 (PST) 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 382E6611D7 for ; Sun, 27 Feb 2022 23:18:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84465C340F4 for ; Sun, 27 Feb 2022 23:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646003920; bh=5h/9ONhR9JbTNfkbM1Nf4RX6uqiE1+CzDp93/8OWHsA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y+uJm4RKamIn8qTNLnfV+95FPTmMmguUzTpngsQhsrkmkukSaJ6FZ0/dTJt0L8hz8 0nCLCExaj25NV5fvRdlARFZbA+g0F2CGXBSQg6mVj6EoxA0J6Tr9Q3/WpP+H3N352G 0VkpW061EvHrUmXDvrgE+3kA313m/szA8vMt0JjWRMH6kGSK8MZJUpuBN6YAWwHn56 zLIHMdbdQndxrSkSD/WYFTE+aPaRKug16wh4afWV2yGN2/uHcRqahwGJbSwPaO+8Q6 br9rvDuTTZiqiPtFkmzNg0/G/OfAhl+SARe7bHET7k7ggm+9FUh5H9om+dscj6Rflg epIT6nkqL9rrA== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH v9 17/27] NFS: Readdirplus can't help lookup for case insensitive filesystems Date: Sun, 27 Feb 2022 18:12:17 -0500 Message-Id: <20220227231227.9038-18-trondmy@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220227231227.9038-17-trondmy@kernel.org> References: <20220227231227.9038-1-trondmy@kernel.org> <20220227231227.9038-2-trondmy@kernel.org> <20220227231227.9038-3-trondmy@kernel.org> <20220227231227.9038-4-trondmy@kernel.org> <20220227231227.9038-5-trondmy@kernel.org> <20220227231227.9038-6-trondmy@kernel.org> <20220227231227.9038-7-trondmy@kernel.org> <20220227231227.9038-8-trondmy@kernel.org> <20220227231227.9038-9-trondmy@kernel.org> <20220227231227.9038-10-trondmy@kernel.org> <20220227231227.9038-11-trondmy@kernel.org> <20220227231227.9038-12-trondmy@kernel.org> <20220227231227.9038-13-trondmy@kernel.org> <20220227231227.9038-14-trondmy@kernel.org> <20220227231227.9038-15-trondmy@kernel.org> <20220227231227.9038-16-trondmy@kernel.org> <20220227231227.9038-17-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 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 c5c7175a257c..5892c4ee3a6d 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -694,6 +694,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