Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp293368ybt; Tue, 23 Jun 2020 22:38:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVJPZoOxwL2UcdDRVQYy+aiV/klvxmFiGeBDHQI/WTgwpUwX4ehU4uOQxyVKHMlFKd4TUt X-Received: by 2002:a05:6402:148d:: with SMTP id e13mr25787794edv.200.1592977081730; Tue, 23 Jun 2020 22:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592977081; cv=none; d=google.com; s=arc-20160816; b=qYdc6iO/Lt/tC7THhbkFfH0L1u3pCglH+irXA//4sdLFVUpdNArOiKp8f9AHhIiGa+ QoOZW5bxGqScQj1b2Ir7dyTkSU4caDFWcEOHOrlIfiY5kOub0UaD/xbOR+Fw9BOC6ivE 7BEF45njmJRj67NK3bIZ6GeGIT5mBUidLa1ynzGPFqX0LVrubxROStyQpxpIFKVCkXNp 1ecz/ZeNtD0DUqDrCQbNq2GSrq9gbaI69kuS80wb0jJCFRFQ2g2Z6NZqcM1IiSabEZrG NNYJpl1HPdEM7DlDaGm66siSlLrTmxHkPKvppnbVshZZIiVQTmIAC7Rt2HrP2symXZ1C aSHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wb4QukjekILuiNOvt3WtAggRANvs3/DPlF6kk/OZN9A=; b=BxZ4atXAhdWH1ILqO0g6bsqeD5gOmKpAdvoXHUtEPguSg4j+ywEGJdsCrpdeQvcGEB Fgz7kPmvQdCSDxwacYBM33wuMXyCXGm7c80toEeal7XCTmX0J2cBvatUhcUm5DW2ylF1 oCmiyUkbkdHrnOGWrewP9YmS9FdDqa6zop6zI4hxxhue+p3AAdbwypfuwQJ4I+LWqxL4 2gtOEL0XpBof/uZP8noNO5REcHVA3dXUBgEXx28UP+7d9AsuXMswvbNCp8w+w0YhLlou ah1/TjYyFOcaWdw3p1Iltw+OnH1vqdvHI4LXPkIpHtFgVuC7WXyhjQjVqCFLGkrnU2s0 eqOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ME2/ILyR"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si2192004edh.362.2020.06.23.22.37.38; Tue, 23 Jun 2020 22:38:01 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="ME2/ILyR"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388766AbgFXFhc (ORCPT + 99 others); Wed, 24 Jun 2020 01:37:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:54570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388470AbgFXFhb (ORCPT ); Wed, 24 Jun 2020 01:37:31 -0400 Received: from sol.localdomain (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC0C82072E; Wed, 24 Jun 2020 05:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592977051; bh=wb4QukjekILuiNOvt3WtAggRANvs3/DPlF6kk/OZN9A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ME2/ILyRl01EO6yDPEjuIw5z41jE6WT0YL/dZxeFp1FPcCqTGoXmWlZASWXMdQg+d Gg6ZXHBJaopVsT69BCF292QvgQpMxHWYMvgoHHUbOyO2xDDrO8HZyvDEPplfoZjCZF oVsC9NaAewstXOI+yLeiPyQ9MDInXF4S2T12EQBY= Date: Tue, 23 Jun 2020 22:37:29 -0700 From: Eric Biggers To: Daniel Rosenberg Cc: Theodore Ts'o , linux-ext4@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, linux-fscrypt@vger.kernel.org, Alexander Viro , Richard Weinberger , linux-mtd@lists.infradead.org, Andreas Dilger , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , kernel-team@android.com Subject: Re: [PATCH v9 1/4] unicode: Add utf8_casefold_hash Message-ID: <20200624053729.GE844@sol.localdomain> References: <20200624043341.33364-1-drosen@google.com> <20200624043341.33364-2-drosen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200624043341.33364-2-drosen@google.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jun 23, 2020 at 09:33:38PM -0700, Daniel Rosenberg wrote: > This adds a case insensitive hash function to allow taking the hash > without needing to allocate a casefolded copy of the string. It would be helpful to add a few more details in this commit message. Somewhat along the lines of: ->d_hash() for casefolding currently allocates memory, it needs to use GFP_ATOMIC due to ->d_hash() being called in rcu-walk mode, this is unreliable and inefficient, and this patch allows solving that problem by removing the need to allocate memory. - Eric