Message ID | 20240911144502.115260-3-andrealmeid@igalia.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60529EE49BD for <linux-mm@archiver.kernel.org>; Wed, 11 Sep 2024 14:45:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A231D940050; Wed, 11 Sep 2024 10:45:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 913D3940053; Wed, 11 Sep 2024 10:45:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 65231940021; Wed, 11 Sep 2024 10:45:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 44629940050 for <linux-mm@kvack.org>; Wed, 11 Sep 2024 10:45:33 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id F1E64AAB79 for <linux-mm@kvack.org>; Wed, 11 Sep 2024 14:45:32 +0000 (UTC) X-FDA: 82552730904.02.EDADE16 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by imf01.hostedemail.com (Postfix) with ESMTP id 498454000F for <linux-mm@kvack.org>; Wed, 11 Sep 2024 14:45:31 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=d3GntHFk; spf=pass (imf01.hostedemail.com: domain of andrealmeid@igalia.com designates 178.60.130.6 as permitted sender) smtp.mailfrom=andrealmeid@igalia.com; dmarc=pass (policy=none) header.from=igalia.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726065878; a=rsa-sha256; cv=none; b=mvYQxatPXwxGBV6NN22nEj8JIaJRSYw+FF2yDsvIRW95zN3cnKrnUnWwv0meZvFjNJ/jkw wqWHVFtF2pHtqs3KYl0sQpzLOMmXSqzAvFmTThnST+ySEHDah38FDaJTBGzXdrBqzLUJ20 DPSN2p8dJXNAr+/+DpUSB8Nid8p5V1k= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=d3GntHFk; spf=pass (imf01.hostedemail.com: domain of andrealmeid@igalia.com designates 178.60.130.6 as permitted sender) smtp.mailfrom=andrealmeid@igalia.com; dmarc=pass (policy=none) header.from=igalia.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726065878; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=kxZabVtRIbsH5N40Gr/wp92cNKF1pfI7iuz0Er/EL18=; b=m1znbnzDp+9N3l6cQDSdaBX5CkYX2bxStfu25tC2VDc7K8j2PZptH7RnVB1JD/j6uCLOCr RC0rwM+q3tL4AZThurCLYBskDFuz5r3AebNe0PMVuX7jOHgaOUn1W6yNmmw2DPiIX4AmGF 5zg+/qeLi/9VasrXgscxiDd9nYOgcoo= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=kxZabVtRIbsH5N40Gr/wp92cNKF1pfI7iuz0Er/EL18=; b=d3GntHFkdbbMSCXQUNBp91ixBf 9OIUngs6Lz8HspCHitoMhM+6/l/YsLELRFGnW2P9DblIt558GwmqgnJGce4qp6WHDmuG86C5POYVV Bl5v5DEh2FEO70Vymnl9a/tI3/1xWfCgIybnnSHuPd74+4vWpGjFuxoo6gvobs+wc0hgznp0Jc9DS 2lTOaJ5cRQQwanvW74I+p5hOUYaoDu7HS0Jwx0055qobygH786E/npE4xaeuZNpnXhtAwPpGRMsog Ok13crqzkBfgGFCSmzuMbx4DjIQAQTYQZpXBatIclfY56U2TN45aNkHqbXaOi7dD4qTiHYo3mkWE8 wI1XTxgg==; Received: from [177.172.122.98] (helo=localhost.localdomain) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1soOau-00CTwi-4M; Wed, 11 Sep 2024 16:45:20 +0200 From: =?utf-8?q?Andr=C3=A9_Almeida?= <andrealmeid@igalia.com> To: Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>, krisman@kernel.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel-dev@igalia.com, Daniel Rosenberg <drosen@google.com>, smcv@collabora.com, Christoph Hellwig <hch@lst.de>, Theodore Ts'o <tytso@mit.edu>, =?utf-8?q?An?= =?utf-8?q?dr=C3=A9_Almeida?= <andrealmeid@igalia.com>, Gabriel Krisman Bertazi <gabriel@krisman.be> Subject: [PATCH v4 02/10] ext4: Use generic_ci_validate_strict_name helper Date: Wed, 11 Sep 2024 11:44:54 -0300 Message-ID: <20240911144502.115260-3-andrealmeid@igalia.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911144502.115260-1-andrealmeid@igalia.com> References: <20240911144502.115260-1-andrealmeid@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Stat-Signature: fcfy83t9okpfdsiag4tahqwspsmrtu9z X-Rspamd-Queue-Id: 498454000F X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1726065931-291726 X-HE-Meta: U2FsdGVkX19jXAg46ANLZKTQ9wJFA5dIWGgZVAcaxxDDct/PvkMYYmc0RV5iVGC5WwibbDuO3k87nYcIDtiUUuvKThhyQavibXxDP5LBCabgwvnTQChrwBf+XzYqX5AOgGuyljnAylDN5Cr7PiFT0UJCg3vtLd7DhD1tZWRhD9fttep3XFk7Y11/7YynA0TJ19YX6lww7XNBE/yFx8PZnAoXlR6LuiRwE6CybyCqv1WHl07V6efP5M93AOoK8TMlDSLT04wCdKFChDUozPDKV4VYTgUp/EH2Jqlb+7CCfXOYP6/e+vvhpcubW104J+rufu9WMTryJyxmIx3UGSfcfewHBErueHiII3YF07byN7K0xfWpKVzsD3S7DuLqMnx73ElAX+hlKAAAM87EC3ga0GePOkBXBh9IQQwxqcNLAEf1ds2nZEq533xXtGDo/EBqeThfMv1p8s2v/wsCAkjT/kXbOD31Vrio7M1uAnuOXXEz6uVun+nTOiOqPfFHERC2mm6wVOgidoxvokeiYH64sAi4NJlVemuhvzlGbxi2INuLp10GGD7pVBNL8qN3se2FUFs4462FgVYqkV0ag1u/+FPFSeNs0pLIQY6EWzlC0i8+mO3vpr8g2UpD3nVuIKnERsz3P34v6h4jnBi+jTO1g236WFgqFN9DO3zfpT6aQk5w4UmTBI2nsqoZxGQq7kjjakBHyvW3BHtzXdC148lGmuXZjUxV2MFa6QCZHIklehGIAem1wMy2qzcs+tvo4koDijOIQOyN7vfMqB+ggpyIIz+pL+qhwWKSbFT8T6FbbkRThS8J6B9mVDmHBAc5C7BmaFsUcFgVWe9k2I0Wsm3bq8Mtt4TwG68JSC32lnCVuO3sV/uYQEO8wIWDjJ5O9XaMlUmkEWS+f40BfLYLuQfGbBGGOzZ6hs4KrwYMQsTa6OB3Zavx/aA5kTCLJr/SkyTyQc6C9Dij6IFaH3jUbfz HyVQ8zFi FsKDvJeIV7TZ471uW3nr+v6SOUyMuZKNeh6yTfCT7b1x4goEoen0qlKJhPQGZZFqTgmg3VdMgwLRKOBPKp5RkCxqGeQktPnzys7bGLR53Et9m3thVH2lIYHL3j9VoBFeKeJt1jeQca+Kl6rnNcSgc28lYFOf+6LVnGZa4pUKPk56grK6DUL2MjtWHO7ypv5OoiiB/R3oIv9ZzlXVKrBHAxGRYP3rccFE0PqQ+RddFqXh1tNN5lh/ukLRtpd+STa98JJo8jsiAwkfxs+lTpNLUPHRbNhceBM9VBVtuJpEB6X1XuLfrGfi424mrig7bf+HDlr7B8eH9jnzImjHqQp8yuqGJwf5mZRFCy+/rHu+OiIQiZMfaPOo3H4Iug1t0al5VICU3 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
tmpfs: Add case-insensitive support for tmpfs
|
expand
|
André Almeida <andrealmeid@igalia.com> writes: > Use the helper function to check the requirements for casefold > directories using strict encoding. Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 6a95713f9193..beca80e70b0c 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -2394,8 +2394,7 @@ static int ext4_add_entry(handle_t *handle, struct dentry *dentry, return -ENOKEY; #if IS_ENABLED(CONFIG_UNICODE) - if (sb_has_strict_encoding(sb) && IS_CASEFOLDED(dir) && - utf8_validate(sb->s_encoding, &dentry->d_name)) + if (!generic_ci_validate_strict_name(dir, &dentry->d_name)) return -EINVAL; #endif