From patchwork Wed Jun 24 04:33:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Rosenberg X-Patchwork-Id: 1315832 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=wogyP6c6; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=ATg4ot7i; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49s9L04BNGz9s1x for ; Wed, 24 Jun 2020 14:35:04 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:Mime-Version:Message-Id:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=PjoggME8uMh53jz4dcSIxpbFGGxtIMYhN6NdQBgKXC8=; b=wogyP6c6aL0pKu69SB8+R/DQCM mqOvEoK7KYTCOL/2w/PAfcu3PRvU4jO+9o9BsxhzmM8NUYhc+/5n453g6u48J3nrqHxSDEJq529tv W47idflbiZTtBZ3S8jQ2qCHFG80CT0+h9xBCSEwWq42BrCWNvH81ttgSMNUZV0Ajm/784+MHOiz2b 9TcJNYSBkk+azyHmA0gh0sYOu53QeR8wQNx1MhsuwKSeHlkcHxKkzS42Iy68uglOCRB7rp33Nd69i WR/0cXFczzrDzirRGINio/lT0rL+nKFUJzupNpD6Kb8gXB85s/kERtY8aBB1S7WxAzwgib+oBxVXE Tp5CAZBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnx6o-0002JP-R7; Wed, 24 Jun 2020 04:34:02 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnx6l-0002HJ-Hf for linux-mtd@lists.infradead.org; Wed, 24 Jun 2020 04:34:00 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id e82so994766ybh.12 for ; Tue, 23 Jun 2020 21:33:57 -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=eAyI98JwhdIDXBxliVpDFdf0yUpd0Pq3n9faUIvdzTjKmPs01IN9JBdxcaOD+xmM98 seKa68399Yp5BkaQOgGHa6+cKyJBgsrdjJphR84CoFqDAC582rSkpISYIKOfDUbz1ApO JSwdyhepI+0gNI4pEmhox3Z7QtwuQkZbMZJgR6kFX1eR4IKqDL/nCfbZ3/LgaRhlqAOg S35vHJOYf3T947kteQLYR4gpZSo0MDpr+Cim1rHLiiE20RTP0RFqOkzaNPZwQr9LZQ8B Zklv2+h5caV8XdB2fO3eYi/29za4IiRCg56BDJYSriqmvFN+HPXICvxJ+Egr+I1JX9QY D8bg== X-Gm-Message-State: AOAM5325JQk8vhKJaSbxsIxhVGAFC92nxfAYjd5cBVC9tLS4ZopxEWUo OjC+r59Koc2ny2+FN+9JO298BbqN/Vc= 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 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.7 (-------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-7.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM white-list -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:b4a listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_MED DKIMwl.org - Medium sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Rosenberg , linux-doc@vger.kernel.org, kernel-team@android.com, Jonathan Corbet , linux-kernel@vger.kernel.org, Andreas Dilger , linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, Gabriel Krisman Bertazi Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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(-)