Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp192939rdd; Wed, 22 Nov 2023 13:04:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbaFSUsMlJ29tbIj99Q4CeAE0xYVpVUcvKc+shzuJ9HhuHnpRlODwlASz0qqS8PdxDyow5 X-Received: by 2002:a05:620a:4d09:b0:775:aaf7:903f with SMTP id wa9-20020a05620a4d0900b00775aaf7903fmr2936182qkn.67.1700687072521; Wed, 22 Nov 2023 13:04:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700687072; cv=none; d=google.com; s=arc-20160816; b=UnFu8ybVX/uXAChP4+60ajUj8291XsNg77aa4nC4Gkqhf6J/3D3apsVm+Jpewsdhg0 z2tCtu+9QruxOqJcvRvwB3hu70uqz9DJeLlmjhXOJze2ybOZNfGlChbxdGenW9//mgY9 4uelAklvK3//sDcQMQFspxtCk5lcOW5lAtK2f9V1frT2JhtPnolz9NRdeyrw2cpT6Ioz SZoO28FJLHyvx7VMrd1XmL2HBS/4HvT36rONbjyO7bSQ4N9FhFo3aNwKknNEpX8g6e5L Ben8dVd6a6YCPrinWNbQcexqrHHSepU9WBS7z0s0m1BOauBuN/GkmZq0bVgsP5k3xTh/ yBFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=Humg2PScZF2wDwV9BWUbbU67w2PP4g8zlkqlYFN20Ks=; fh=mWQQBnTo5DRH+79loVqvagSRJXs7JzC4qexRYtgHvOQ=; b=Bwo2bRwBTSPkkPZ/F6GRAoNTXUuPdjOqEHz24EfRCXKvDGQ4ihCfMXs0VnNZ8vvsfo 168l+I+UnSDAfpTzeMMxwZedx7/PyOS3GnxvBgDSt/e+ElE7V1Jn/ISw4C7nwig044Ap 5Jl8+uAE+v7yAEyYLN5VTaP6XSyixze5rw+Jftj9nzQIz4uwKfaF84Ly3vrwwNwpaM4A TRARjKD54lweIHiCcvawgzsiF+HnBMm8r9Gw6V6DTu63HLF1PldkYGbGaWAydsZ3pGZo 5bvlvF7g80rFlX0wiBOToS2IOhzxuhYj0icBPuvy4GloxJToREswBmDsLLgFbXKiNcGS uAJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=saaCeffv; spf=pass (google.com: domain of linux-ext4+bounces-91-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-91-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d19-20020a05620a241300b0077434814120si460729qkn.162.2023.11.22.13.04.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 13:04:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-91-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=saaCeffv; spf=pass (google.com: domain of linux-ext4+bounces-91-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-91-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E6E711C20B8D for ; Wed, 22 Nov 2023 21:04:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCCC31A27D; Wed, 22 Nov 2023 21:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="saaCeffv" X-Original-To: linux-ext4@vger.kernel.org Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1C431A8; Wed, 22 Nov 2023 13:04:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Humg2PScZF2wDwV9BWUbbU67w2PP4g8zlkqlYFN20Ks=; b=saaCeffvvvXFQAMl5XrkZp/Ir1 Qr5jS0Tl4PHDBDPU4+Kz8cC/AERvEe8TE6+lgVynBikt+bjlljWmV2aHZkgpXMl51l3ZeEdBCeoS4 npSbxVDnboFB96eVhbUnTt475sGMob1LX0IKSskTyQmZHKCcoXx6KvPQVcFxnGpDi1GaxZotgWosS 35JZzWQ0bVIDIvQwfLnQCGLU6qe8dq4u/6eUasj8sID2+n9O3rsgtH0Te9sshmx9pRuoLN+B7hXR9 A93hFlEWg10arO2Yft3zS7I6nhLcMLKq/u5mBMX8JYm8gxiJPS/ZUMzhn6lO+Dws9G05ZwQizar64 LARp+q3Q==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1r5uOM-001mcA-1y; Wed, 22 Nov 2023 21:04:14 +0000 Date: Wed, 22 Nov 2023 21:04:14 +0000 From: Al Viro To: Theodore Ts'o Cc: Linus Torvalds , Christian Brauner , Gabriel Krisman Bertazi , linux-f2fs-devel@lists.sourceforge.net, ebiggers@kernel.org, linux-fsdevel@vger.kernel.org, jaegeuk@kernel.org, linux-ext4@vger.kernel.org Subject: Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs Message-ID: <20231122210414.GI38156@ZenIV> References: <20230816050803.15660-1-krisman@suse.de> <20231025-selektiert-leibarzt-5d0070d85d93@brauner> <655a9634.630a0220.d50d7.5063SMTPIN_ADDED_BROKEN@mx.google.com> <20231120-nihilismus-verehren-f2b932b799e0@brauner> <20231121020254.GB291888@mit.edu> <20231121051215.GA335601@mit.edu> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121051215.GA335601@mit.edu> Sender: Al Viro On Tue, Nov 21, 2023 at 12:12:15AM -0500, Theodore Ts'o wrote: > Yeah, agreed, that would be a nice optimization. However, in the > unfortunate case where (a) it's non-ASCII, and (b) the input string is > non-normalized and/or differs in case, we end up scanning some portion > of the two strings twice; once doing the strcmp, and once doing the > Unicode slow path. The first pass is cheap and the second one will be running entirely from the cache, so I doubt that scanning them twice will be a loss...