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=-11.6 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL 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 4B875C433E2 for ; Wed, 24 Jun 2020 04:34:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2838F2085B for ; Wed, 24 Jun 2020 04:34:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ATg4ot7i" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728793AbgFXEeA (ORCPT ); Wed, 24 Jun 2020 00:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728808AbgFXEd6 (ORCPT ); Wed, 24 Jun 2020 00:33:58 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B60C8C0613ED for ; Tue, 23 Jun 2020 21:33:56 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id c3so1013815ybp.8 for ; Tue, 23 Jun 2020 21:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=VIhRPUc686EfpzyL1ZkpMu0h/tTzQnqLcgbnZ2tSukA=; b=ATg4ot7iQfZhD7VJCToYCJEq0+HHgex7Fu5otS5NIVKN8IP1NunyBFhinY6vJQmpWp 4Ij36w/kSxOzIDs1lg4m4ranBcUkYgjgGqDBqZtXEgUF/A6viuow4yzNYWkxxGRvlpWC mmIuA8xMCysfmJgO6z/8XuIDppG81o+uGO/b1g0+chDgAnIrr/7wD3ZVV8Vz040+E4+Z OdVyjEqMLwNTcMPpg5aX3GyMmWgYDsyC79JWjtqgCg9JBAfM0b3dFkEJ4zIsj8DZBgV0 XSQbXGyBLB4NyxkGBW2KMLsu3Za4MN22eTnqS9Z/oFfinJGodSjpc65NAWPD+W0KoXtQ L6Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=VIhRPUc686EfpzyL1ZkpMu0h/tTzQnqLcgbnZ2tSukA=; b=Ul+Hua0G43UZTbHStdPNC7MPkmFk4BOSNIcoVYZUhoTNBELLxr3UyPkgkbHXfdrPZp yjKqIvWPd6D43eY314CSBZTKJChM/UxHSkgkiFMAlaOo6OYwlup2TXXAdgneLGl/SrC1 ta2/9sVkkDYlRxOOxIbL/kK5q1tdpDYIkCAvjfO27SNblQvBunvCQc5fnCeP/dTDFzh7 BEwonnoxw0vEErZB2reaegjeW+irlDgRkDlQmTePnwdHArZv3uG5Px/6bYSD30gwxGfd DidadCQxrx2RcR0iL8tBDvx9NQOzD3peUP9ikWtzRwqz2xLlEaE/RB+mmz3nKy3KWRMf O9Ow== X-Gm-Message-State: AOAM5326UDOhBSrhxdUFLQEdEWXAOMUI/XdThAV3PTuvG37A8lJvhHmA 9EDWqLjjZdZUuBar47ZLFkmqEjZdsto= X-Google-Smtp-Source: ABdhPJzqZudoyjfwmOnuXUVebSWSY1PkS5+3B30QL46yfijJWtmCuoeOhxK7BwlRH7FbBAlVw+Pj75yPbZ4= X-Received: by 2002:a25:b8b:: with SMTP id 133mr42829755ybl.373.1592973235828; Tue, 23 Jun 2020 21:33:55 -0700 (PDT) Date: Tue, 23 Jun 2020 21:33:37 -0700 Message-Id: <20200624043341.33364-1-drosen@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.27.0.111.gc72c7da667-goog Subject: [PATCH v9 0/4] Prepare for upcoming Casefolding/Encryption patches From: Daniel Rosenberg To: "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 Cc: 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, Daniel Rosenberg Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org This lays the ground work for enabling casefolding and encryption at the same time for ext4 and f2fs. A future set of patches will enable that functionality. These unify the highly similar dentry_operations that ext4 and f2fs both use for casefolding. Daniel Rosenberg (4): unicode: Add utf8_casefold_hash fs: Add standard casefolding support f2fs: Use generic casefolding support ext4: Use generic casefolding support fs/ext4/dir.c | 64 +------------------------ fs/ext4/ext4.h | 12 ----- fs/ext4/hash.c | 2 +- fs/ext4/namei.c | 20 ++++---- fs/ext4/super.c | 12 ++--- fs/f2fs/dir.c | 84 ++++----------------------------- fs/f2fs/f2fs.h | 4 -- fs/f2fs/super.c | 10 ++-- fs/f2fs/sysfs.c | 10 ++-- fs/libfs.c | 101 ++++++++++++++++++++++++++++++++++++++++ fs/unicode/utf8-core.c | 23 ++++++++- include/linux/f2fs_fs.h | 3 -- include/linux/fs.h | 22 +++++++++ include/linux/unicode.h | 3 ++ 14 files changed, 186 insertions(+), 184 deletions(-) -- 2.27.0.111.gc72c7da667-goog