Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1083612pxm; Wed, 23 Feb 2022 17:42:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9RQ7cx7ia4fKvIFvQ62QjPPEVhaYsOdzG5en59Zlyve6SGzBYF+Yr5juOAUWJ+6T8rgoD X-Received: by 2002:aa7:88ce:0:b0:4f3:645a:5bd7 with SMTP id k14-20020aa788ce000000b004f3645a5bd7mr444746pff.57.1645666921903; Wed, 23 Feb 2022 17:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645666921; cv=none; d=google.com; s=arc-20160816; b=yaHqbINet7eiaeUvtj4QBUivnqLf44dOFtQBKXITYVsRGoOpb6tFXQ0CXYT5Y8QYNJ vAAZA11l5r1IPQDwvUg5/NxvBErjuSehKyjoAs8uahELC5IlUcK8UXjDZuuSLviDzBWn JZZ2qylxMTBpevwR5jVZlU18B/N1LdnyYyDLhzro1DJudyame2PfiN0FFi15Ei5KY+/P kHCw4ZxS644FytV6R/i5nj47rtJjdUo+m6kDwkTiRbe5Rso0fsZ/PqpzxkmRYfO8Dzno 7Rn7JMjBZCGFQMuofxe/YgV0csYETCL6cLPVpTQIgFBGmUnFVrDiIZ6f4UuEM9nBHcuN gQ+w== 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=/+GcBGPi7007FyfQ2lu/pSykthWz04geS0RVINsPfe4=; b=aXHU7CXcsg5Gu5Rm+iwteFJ6TB6Lk47xSga31wav2X5MAQncRYdWHJcwr5GpIlTuS9 CIpPrUPu9Qb3eCiqt/TvUyFApBMUzaO8f+P2Upq9vm9jpLRzL8mbPxHdvHaf1j3aQ5+C WVNw8YSFujglIVm3VRP41vi0FJzTWxNK4hzVtToxUvs9iiUmc+p4crLKHCoX9jc1IRSa 3UAGLTM+RRUINMqbAW8Uvq5o+rcueYRB+ulms5VQgu9mi2r9zMkuswLVgW+OlQ3NXeOU /KJ7rRlWfh7p/KE11A3Q2phDzyuI8EFac5JnHfV9FiQlSHlZZPwpLBxmXFR7kzGLnU3S fbTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jWNDYiS4; 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 63si1069989pga.680.2022.02.23.17.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:42:01 -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=jWNDYiS4; 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 3BC413B2BF; Wed, 23 Feb 2022 17:17:28 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233410AbiBWVXg (ORCPT + 99 others); Wed, 23 Feb 2022 16:23:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242439AbiBWVUG (ORCPT ); Wed, 23 Feb 2022 16:20:06 -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 0D0E54ECDA for ; Wed, 23 Feb 2022 13:19:38 -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 9F3C26189D for ; Wed, 23 Feb 2022 21:19:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5603AC340F1 for ; Wed, 23 Feb 2022 21:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645651177; bh=xz8FVkRXo0VWPTOYUY4Y5rtOlouiXfwThWdtaTUBv6g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jWNDYiS45pOxng56y/0f8aCxTewYq40iaiQPhSJl1Fs8D6NpwaxEZ9Gn/GrkMsqFr LLmjHtmHgU29xOmkJCL5vtTJrKq35AJlQ3bjDiobgw1Iu5E6hTLG6BVxL/urDbGR9v bcGoHukGZYlCQpz9mMy37qtB3opWDWFew7pUp0RH59s6FVZbwi9O5jRWHmiuaK/gbb 5GjppolMSiV0L1mtNdAhT2a7Yz/ux1Dl5nGaSWaRUNJjJYgzUK1qNHez5UPe6Etbth 6x1NSQholUtR7slowvvOphjdE/bQKuw0/6DrAvGvh1aySlhKPriOqTpX1/qBCPTZpy BlUPXHxUCMznQ== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH v7 14/21] NFS: Readdirplus can't help lookup for case insensitive filesystems Date: Wed, 23 Feb 2022 16:12:58 -0500 Message-Id: <20220223211305.296816-15-trondmy@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220223211305.296816-14-trondmy@kernel.org> References: <20220223211305.296816-1-trondmy@kernel.org> <20220223211305.296816-2-trondmy@kernel.org> <20220223211305.296816-3-trondmy@kernel.org> <20220223211305.296816-4-trondmy@kernel.org> <20220223211305.296816-5-trondmy@kernel.org> <20220223211305.296816-6-trondmy@kernel.org> <20220223211305.296816-7-trondmy@kernel.org> <20220223211305.296816-8-trondmy@kernel.org> <20220223211305.296816-9-trondmy@kernel.org> <20220223211305.296816-10-trondmy@kernel.org> <20220223211305.296816-11-trondmy@kernel.org> <20220223211305.296816-12-trondmy@kernel.org> <20220223211305.296816-13-trondmy@kernel.org> <20220223211305.296816-14-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 e7942fbe3f50..a9098d5a9fc8 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