Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp732902pxm; Fri, 25 Feb 2022 18:38:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcbimCaUEHYdNH7BCZMC8YNonEsFZ6L7yGINzkadSpxkl9lold4R3nQsSIaaMaLYYmNVfb X-Received: by 2002:a17:902:9348:b0:14d:8ee9:329f with SMTP id g8-20020a170902934800b0014d8ee9329fmr10339453plp.80.1645843125797; Fri, 25 Feb 2022 18:38:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645843125; cv=none; d=google.com; s=arc-20160816; b=tbjXTnO7r2bJKFvOU42c5CMdj5QTILX6GoZAoShG28culM7jpatRnKhmfGOyEQpk7z A6hIvieYfKDBAAFH3U0bTF+yCvBsl9dntJBz7churWzb9NDjwoIHiGW7ToxDZjYd/mPw 7lqQoKS2/z1nb0Mg5oU3ckPjUIr2Q7bVOf7HkAsqyEDJsJY5LMYTl48CB+z7Qm+dOBdZ SBfqPQ9GYenWkhefAoPkFrruw8ZM641InHrs/dYvOJTPpJ4d9WdiBvl6FbWIXwm86BMn 8lxVCvQkNXiAS5BNjRTzsXpmnRXL4RBBrCvPu8oPjBUagRD+W3vYrrxoI5rqj9vqoD5o 26eQ== 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=KROHE5M+K4dPd0smXg8QzrK0yowN/bnxWQLMmsZKGbs=; b=EQZGZgtLyg2snD9JDsKmAAUgw8g8JPyMP0dsDgGttJ/oDhq0iJg6sxuQHN5bPi8HSS M+oZ2arN/KOT2FAjxEJoFTrz2afYdXSjjSGHPez39tsvXodUhrxcBNIXK/V/vA5KbtLJ fahq2Ul8VmQH1Ph2HBWhJLM3fvnWWgkfInoF+1lSxVqcWYabhuubL6nanjobfzr6IRA+ cI/UL822fhxXI79xt8Pi/iVyK4NHeRIXknesqw9d2g2KorVtiSZYhvWenej7VXHjdif9 VCpnsE6Y9oRKRKlpnzQznN+QoVo71wIjXmBaCczIeeRQrJh62a5d9afjkH1hDe78PNlU R9/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EZMZmUmJ; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t74-20020a62784d000000b004e106021acesi3111297pfc.299.2022.02.25.18.38.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 18:38:45 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EZMZmUmJ; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72F0B30692F; Fri, 25 Feb 2022 18:03:44 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233382AbiBYSfW (ORCPT + 99 others); Fri, 25 Feb 2022 13:35:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233385AbiBYSfQ (ORCPT ); Fri, 25 Feb 2022 13:35:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 350271B0C60 for ; Fri, 25 Feb 2022 10:34:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id CADC4B8330A for ; Fri, 25 Feb 2022 18:34:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A119C340F0 for ; Fri, 25 Feb 2022 18:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645814082; bh=dAwumqNCKPnGHYh6b3185ZydIfe0DxBHTta72NTR/+8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EZMZmUmJNvdHP1wmBrVRLGBVFKdevcxPatxG1TpFwyAS3/Erc8Hsv2rBLRK9SgPrR sm0l7krz+6ZjAvcKCKp7YSz59ls1zPwF2ZiwnuefZCJO1w4ug8sSF2SF9hFUwYqij3 jeXoQId4NhBVZP52QpwH9hOvgougTFvG/JCMMx9pA45FEiAQC+cWjzp4qufZyBeqPU UzoRdQkL5P0OgXkQVhDGqA4J6jJbICxKJSh3wEEKevmijMVPumHXP1X+jaw2lvHs3+ LNMWSoh91Q+kefHeOrkgwgJomKMpsN2cXbx6Y3fwwv8xG1izG3cANdGeJEdyupm/Sy 4BmaFkXT2mV4g== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH v8 16/24] NFS: Readdirplus can't help lookup for case insensitive filesystems Date: Fri, 25 Feb 2022 13:28:21 -0500 Message-Id: <20220225182829.1236093-17-trondmy@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220225182829.1236093-16-trondmy@kernel.org> References: <20220225182829.1236093-1-trondmy@kernel.org> <20220225182829.1236093-2-trondmy@kernel.org> <20220225182829.1236093-3-trondmy@kernel.org> <20220225182829.1236093-4-trondmy@kernel.org> <20220225182829.1236093-5-trondmy@kernel.org> <20220225182829.1236093-6-trondmy@kernel.org> <20220225182829.1236093-7-trondmy@kernel.org> <20220225182829.1236093-8-trondmy@kernel.org> <20220225182829.1236093-9-trondmy@kernel.org> <20220225182829.1236093-10-trondmy@kernel.org> <20220225182829.1236093-11-trondmy@kernel.org> <20220225182829.1236093-12-trondmy@kernel.org> <20220225182829.1236093-13-trondmy@kernel.org> <20220225182829.1236093-14-trondmy@kernel.org> <20220225182829.1236093-15-trondmy@kernel.org> <20220225182829.1236093-16-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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: 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 403dbfc36a39..feaf19240db1 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -684,6 +684,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