Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp679806pxb; Wed, 27 Jan 2021 19:00:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDGKSBOaQUNl5hhX1h9HFgrJWPRZy0iJ2SrnTC9WZpMiEu1+xAraAiIGm68oRoINDYIJ2R X-Received: by 2002:a17:906:8057:: with SMTP id x23mr9332485ejw.179.1611802841307; Wed, 27 Jan 2021 19:00:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611802841; cv=none; d=google.com; s=arc-20160816; b=zRvuXkw38+gaNZC1QsuvFRZHPZCXdiX8IuYmlfb/Dm1Xq0BXLGXBO56Z1rUY4fLWIA a6k8nDSjanzwcxWkJAiwlQC7xf6qINkKlaCOPnNbKExH7n0uerVEedKNbBdeckmtiBEk BP97oZSBPa5T35JlTI+f1trwdidfvldRbvTLQzP3MnnRWNpfa1nRWThfLwiNENll68Vg jYO+XyJlnVdwGGBKQ2ChDmQ/wgwfSZVqZj895qHuohg40H++OxRKqieIWzykhqGfuvIa p7Bs+DCMQ+pKiUme/Cwyla+v+KIBXN2gYxGXSv34nheuOHBGJarpwtjAPR1wM2YQvmxL vQdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9dZgAfpaldVmSI/oxiik/EfMk+EWjheZzRKScEAHCY4=; b=TATqvb2kODBVIGtKbGljHcKou1+RSE6RdzIiwCEGTTDpn3uAMKUdmPdFx/+BYlbiCU mzMow3JYQ/6dfHX5MapmUywa6GKBI0hXVGOAWSyjM6/1TB0FsFMH+hQh7psk5mWoRJ2Q 06bGbbriVO7zs6OX6lWfHa+lqzYiaXdR1YVjFIoVnPhRcf7CkoxHKVT/JxU+e9dBaJRy fmFO0Kb5MXhvpOhk6CbLRFfHL6mQMQ4iQftRU/COtI7Uz3ry8ElNyonfoSt3agNirVuo GgcsdVfayEMY9c/BltwHR1xqkqniV3Ndmcgv8KBeDUJwY1y2YxdwP1+5z37EdLQD0iqb 0cGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si44859edm.453.2021.01.27.19.00.10; Wed, 27 Jan 2021 19:00:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbhA1C74 (ORCPT + 99 others); Wed, 27 Jan 2021 21:59:56 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:39839 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229739AbhA1C7z (ORCPT ); Wed, 27 Jan 2021 21:59:55 -0500 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 10S2x4iZ017874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Jan 2021 21:59:05 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id BEB1715C344F; Wed, 27 Jan 2021 21:59:04 -0500 (EST) Date: Wed, 27 Jan 2021 21:59:04 -0500 From: "Theodore Ts'o" To: Arnaud Ferraris Cc: linux-ext4@vger.kernel.org, drosen@google.com, krisman@collabora.com, ebiggers@kernel.org Subject: Re: [PATCH v3 04/12] ext2fs: Implement faster CI comparison of strings Message-ID: References: <20201217173544.52953-1-arnaud.ferraris@collabora.com> <20201217173544.52953-5-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201217173544.52953-5-arnaud.ferraris@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Dec 17, 2020 at 06:35:36PM +0100, Arnaud Ferraris wrote: > From: Gabriel Krisman Bertazi > > Instead of calling casefold two times and memcmp the result, which > require allocating a temporary buffer for the casefolded version, add a > strcasecmp-like method to perform the comparison of each code-point > during the casefold itself. > > This method is exposed because it needs to be used directly by fsck. > > Signed-off-by: Gabriel Krisman Bertazi > Signed-off-by: Arnaud Ferraris Thanks, applied. - Ted