From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EEDF8C433E0 for ; Wed, 8 Jul 2020 15:49:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C47F22083B for ; Wed, 8 Jul 2020 15:49:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594223375; bh=bqLj7/olahh4JFtc4EpL9q3D/iTuGstNCn11lxS2sf4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=yjFpehBemvmMirp7PBFjWDVpwO4pwmn8mMYvy+CCmdLMupEaBSHeZyDE/+jF9FQta kEkZVntYRHSexHc7M8MkeNTxRrAI9CBrcb4lLUy36I86gLcAY+anVzPhiVnvYGXX6e DDDWhdekknZQvUknCQG3aO1ErSmsVeUlAxClhjP8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730229AbgGHPtf (ORCPT ); Wed, 8 Jul 2020 11:49:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:55770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730114AbgGHPtf (ORCPT ); Wed, 8 Jul 2020 11:49:35 -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 A8132206DF; Wed, 8 Jul 2020 15:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594223375; bh=bqLj7/olahh4JFtc4EpL9q3D/iTuGstNCn11lxS2sf4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=z8Azl4TKT9W4MeG9hf8xbb9+IT4Vkm5fDqyl/WJgXll0rwBoEZZB1dPFFsJgHRItn xsngg1q+ZlC83YZZmLNlAPECU791bJi6VwWHLb8P6Hma4P91aEvw3Q9UZSycYmYVLW G94SP2CKSCoNSdtCH+2ch4YdjpCLigRyNTWJ0A8g= Date: Wed, 8 Jul 2020 08:49:33 -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 , Andreas Dilger , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , kernel-team@android.com Subject: Re: [PATCH v12 2/4] fs: Add standard casefolding support Message-ID: <20200708154933.GA915@sol.localdomain> References: <20200708091237.3922153-1-drosen@google.com> <20200708091237.3922153-3-drosen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200708091237.3922153-3-drosen@google.com> Sender: linux-fscrypt-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org On Wed, Jul 08, 2020 at 02:12:35AM -0700, Daniel Rosenberg wrote: > This adds general supporting functions for filesystems that use > utf8 casefolding. It provides standard dentry_operations and adds the > necessary structures in struct super_block to allow this standardization. > > The new dentry operations are functionally equivalent to the existing > operations in ext4 and f2fs, apart from the use of utf8_casefold_hash to > avoid an allocation. > > By providing a common implementation, all users can benefit from any > optimizations without needing to port over improvements. > > Signed-off-by: Daniel Rosenberg Reviewed-by: Eric Biggers