Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp181768ybv; Tue, 4 Feb 2020 19:05:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwQdtVCwxh2Eq8c6ZdYHHk+NOKA65ZqZAa7U1TNOG00bxtHw5A+uh0UECXgEYyoKbB4DJXx X-Received: by 2002:a9d:7ac9:: with SMTP id m9mr23387998otn.80.1580871942199; Tue, 04 Feb 2020 19:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580871942; cv=none; d=google.com; s=arc-20160816; b=YVQ4yknGFqugChAegvghwsZAX4sggI5rKyBe0xOMdFNCn/+GoiYuiAc1JauXsj0djf KHpOQ63qbywpsofe/rNIwztt0bQiQSrhN1rvRjsUJ3gaAJEfpOT3nNZDXclWoSuqCqg4 zzoMk+4CoTyKgtxFwEtOu6NMcuIBo2Sin3zBXS5fHqccQeEFBiTiXMQ5r2hm7tAt0+nO gAteW6cjLsZ2qWzAi3kNBz/bKxIrn6B3mWAvkGF8O3OHpUN27hM4jNwMjP37XJiDVsiw LmbcO2MZM2Spgc1RAAhUgEI5iFB6atYYj1xl6UV1RwpSSSonQlGBTcwrIVCkaigvUlkA 4agg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5WF1go+DuJvbwgdXeUhoD65NaX1JQ7zRHimo51GmC8M=; b=BMnQjB3qnS+kyBp9niBhz5ZGAJ3Z8j7ZCgabG2vB/giCQq+/nhukgNYPqj0TkJ3LqG /Jsik3VHm25hZvcYJZ0ZZfpqez+6JRW7JWMexiKoGoo0h8PUbboV+VicBwc5/gIH0adF oUOGUBOtyPFwNaV3wx+4cC5jGVHcEo6PmQ4Bvf3hkNShi2VFrVyTAL8Nl8XdwH8ptenC UruENqicbsJdWsnaM3bjRg7g0vBom/PZ32jynWfB7MOJ2a7Uvr1x7TNr2ljfRrTrMJmj MGi7O40lQAjV1WNmOZu3MGZVabIt45ztkUhScrI67ONwv+jd8DOMEp1CZxee3vv7Eyp9 iiDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="a/rT7owE"; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si12541236otq.144.2020.02.04.19.05.21; Tue, 04 Feb 2020 19:05:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="a/rT7owE"; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727910AbgBEDFQ (ORCPT + 99 others); Tue, 4 Feb 2020 22:05:16 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38951 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727902AbgBEDFP (ORCPT ); Tue, 4 Feb 2020 22:05:15 -0500 Received: by mail-lf1-f67.google.com with SMTP id t23so363361lfk.6 for ; Tue, 04 Feb 2020 19:05:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5WF1go+DuJvbwgdXeUhoD65NaX1JQ7zRHimo51GmC8M=; b=a/rT7owEo3U/lPRFn35JOyHmNdZNKq3CUN5eC0vmSOAlGMUJJc7ELCvSX1Mh8APfaa lAlLVERWXR5pYN81ddhMclRnb/OmN5Fx2KddB7KuZLDfFPyFM3c5qNNCCjwGgxr+r3s1 DNCcaZvM6VYKACKmTz/OjiTlKJVFN9VL8YzEYvQS2U83lFvZUm1XWKOklUIkQxQvXozG vNU7Zo1syf0hTTILG3oFQfUcj+JQqVr59fj+c5MCVuSCuEvLrPxTFeYRhYsiMU1wniYS k/ew5rFlhFL2LzMHulEuIV3u33upCBPfLhXENQXAIsbZYUZT2I99yQmfa/FkquxeDAIP aNXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5WF1go+DuJvbwgdXeUhoD65NaX1JQ7zRHimo51GmC8M=; b=aQc+TZwei1P8NJeBGSNnziVxHRpI2JpIeFP1DdFxHBSkk7dw8tjP2wwU4m3PvEYcjN C/RvANGndPqerUs8LXkN6x9kDbJK70EVpsS/ZfX/dZD6KEPl8lqTOz4si+w305tIOTXM OgXGmmC7TKOUPzXnpTjysBoec2N18TdzPEYAwQCXD9nS/n7IfOu+LfQZSbJk6NGSzPli yUxWBNreimiqiw2j7XkPtUI5YKCVJewT5y0+z9c7ouQuYC8CDO8MX0FWLqDYdC7Nt3c4 M1/kifvYKZXOSOgIwtFgw5B13F/qXErAbd4XTxua9f1Jb/8MASD81vmPVE0qQW9AHG2z iCGQ== X-Gm-Message-State: APjAAAXug1B8DZmG2UVQBQaybVYFPBOo0y11OLuBOpK2/r7uQrhH10Ao FgUqhvNHM1bl6qdYLbwPgaaAc035hXZZclaHyI5/UQ== X-Received: by 2002:a19:4a92:: with SMTP id x140mr17094713lfa.29.1580871913677; Tue, 04 Feb 2020 19:05:13 -0800 (PST) MIME-Version: 1.0 References: <20200128230328.183524-1-drosen@google.com> <20200128230328.183524-2-drosen@google.com> <85sgjsxx2g.fsf@collabora.com> In-Reply-To: <85sgjsxx2g.fsf@collabora.com> From: Daniel Rosenberg Date: Tue, 4 Feb 2020 19:05:02 -0800 Message-ID: Subject: Re: [PATCH v6 1/5] unicode: Add standard casefolded d_ops To: Gabriel Krisman Bertazi Cc: "Theodore Ts'o" , linux-ext4@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, Eric Biggers , 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, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sun, Feb 2, 2020 at 5:46 PM Gabriel Krisman Bertazi wrote: > > > I don't think fs/unicode is the right place for these very specific > filesystem functions, just because they happen to use unicode. It is an > encoding library, it doesn't care about dentries, nor should know how to > handle them. It exposes a simple api to manipulate and convert utf8 strings. > > I saw change was after the desire to not have these functions polluting > the VFS hot path, but that has nothing to do with placing them here. > > Would libfs be better? or a casefolding library in fs/casefold.c? > > > -- > Gabriel Krisman Bertazi The hash function needs access to utf8ncursor, but apart from that, libfs would make sense. utf8ncursor is the only reason I have them here. How do you feel about exposing utf8cursor or something similar?