Message ID | 20240905190252.461639-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 25210CD5BB8 for <linux-mm@archiver.kernel.org>; Thu, 5 Sep 2024 19:03:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 31DCE6B0089; Thu, 5 Sep 2024 15:03:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 258826B008A; Thu, 5 Sep 2024 15:03:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 035486B008C; Thu, 5 Sep 2024 15:03:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id CB3326B0089 for <linux-mm@kvack.org>; Thu, 5 Sep 2024 15:03:27 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 7F5A91409DB for <linux-mm@kvack.org>; Thu, 5 Sep 2024 19:03:27 +0000 (UTC) X-FDA: 82531608054.07.BCEB9B0 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by imf15.hostedemail.com (Postfix) with ESMTP id CEE6FA0002 for <linux-mm@kvack.org>; Thu, 5 Sep 2024 19:03:25 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=k+yEejC8; spf=pass (imf15.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=1725562876; 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=gTF5K7aEwJ5o5+2BMSh6u23zf5QoKZXkxwmD4t98Sg56wQZylwrruDT8c7VIbsFxaxzw8F JZOB7G+hO9ze2m7XSNMogYW3fwwH7DyMaltgKclz14p32niBiug1ia9w4+mWrCdbNOsyYo q9X2uZAbd+a4+hcCZm3c6q8SPwK853E= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=k+yEejC8; spf=pass (imf15.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=1725562876; a=rsa-sha256; cv=none; b=j1zDZUkhfU6L7c8KRk38K36GsaQoYmNNn33DxfpnGimwZrF7NEa60lCBmydhRJtaAR96jn 2jzHxa2c9Tb8236NGd5RVPWw/pjQiEMrf+0rUYZJoeOWhSjF3mAQYKFUsy7jcQom2fr54q mVy4pA8H2GLOkg47jBksv0lmTGaBGCU= 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=k+yEejC8Dmzzln9UhjVHcqVDCI U7faXjakSc/T/yJDWuATyjA6gekduJAOI1X9dqJVLke+YO2Cei9IR3XGwRAEXF1dJdJqQMqnJSqj4 IoNo7I8bJ+bp9s7CnWz8r9cyeOKWbx3NxipIJBcCURjTwl0so8rsLAMokS2bfXijHvkhlpGhxcohD XRp2OljVJlDaM+jjAi3iXWk/ZOTML8RaKnJevj+8BuxAxAJA0u+TzHHrUUxANXsbhBe9CHTMXBpiQ GtPqMmi+2k5jXIQ2N+u25g8aOBRov4Va8z+FkguqaHqHipidIdrHf6w+TEC1BV5cjahvsll5aES/2 YbosNfjw==; 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 1smHlF-00A6Ho-GC; Thu, 05 Sep 2024 21:03:17 +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 v3 2/9] ext4: Use generic_ci_validate_strict_name helper Date: Thu, 5 Sep 2024 16:02:45 -0300 Message-ID: <20240905190252.461639-3-andrealmeid@igalia.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240905190252.461639-1-andrealmeid@igalia.com> References: <20240905190252.461639-1-andrealmeid@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: CEE6FA0002 X-Stat-Signature: dmudsi6swi1fat3t7pfdms397h6jk9m3 X-Rspam-User: X-HE-Tag: 1725563005-650664 X-HE-Meta: U2FsdGVkX19IqRfpmI5CUOfqR4eXPH64oA/jJ/MA2hufMnrzCFZKKzUnZxw3IibSwwyWHMSzUV2g1xebSbXIPSxhKNh6lJwulnrOUPFITZY4Thix7saAtYCN219V9/OXkKIlR7T0+1Prq0tbKMHv8KES/POes147yD6hAFxQd5w4jpTETonp/ZnTx+ZuKoOTfr3c1dxrXYgh0oa1IcWXcsQtRDyy8+NR43Gdtix2M9YkypMdf7Is+woO6hp6Mhv02KLoBmykhto1kAZbmuFH0d4En9MBDkn1iM1M7AfUBe1Ri+RmlPWhBQmviCgb3Ikb2iCBoUMNPbQ2YHrYcFCgI+TOxI2WUu7eKG1sifMuPIFaeADuQtXILGhyytwF/eSWiYht38ltXhaN3EtPmbLtT55pWnV0/kBCUYQP/AH6veXJMnX5DLkt2oQjdVHN8ehbXXG60vBb35VOHRyQYPGz5OzAIwRhQ4KvV/Uqw0smfGqXdYxU3WJ+kGYoLdpuItvW8mdwvmrBCyA4ayNtZL1d3S8TasxZ0ftwBiwRFG2wZLFnel6W7tDo9z6UrNvXGIBlbaFRJ56cRIOvcX2KuLdCQzCRSY0TFRnJzctTytldSHQpNM8dPDhi/M/b56hMvrIuU8decVWl2JV9pdkdRzYLE1kHn2UfuXfd02PJCskIGkpkAkWmQIisOSHmBECtWKZ4AnLb/6XDMaXd0dpijeTGoHaPEzwbyy3GxnMR2GUB3lApXRtegEH83DssshnAfWQuKTmg2cB9tOpzZgLGjsBb7GK8GNA/6rZucxg9JfTlau4Vo2WoL3fTzdnxvdnLJicqwOCRn4OLN6vA8GYt+vmMGyAWoifOlDr7GmScsZkocbFj6OGc3UrBOzgNafLO2eiriLzx1s/tG8J3qKBY7fnAJm2dcEJ8ctPGcs5aicJYX11QliKW2rWMHUqPjZij1/+hJkxCY1rovXdCbjGnz9N L0nBhBk8 pph4cvaHjw96DT8IBHJg3iA7N/yXdD64bqxqQVHzoOKM/z9MRCng2LTxCretCs4WSASWPB98oWA0KS5Z/YYyLKRVo3DJsEr6jNEM70DK0LWax6jC8I6Ncgn3w03ETq7LBYd0WhfzUOsdqnBqFlvSvJwCb+yOH/aUwsCzc/soUfmvUoFzr3ByOKgG5sYvReP1S6L9pb8GA5fubbgIcc7T7eDCdC/p2GGC95Gk42J8RuzbwJRXVC8cNNJ+YpTt5gs54SV5Z0cW/sgtVVEvyJ0jHqhaFLE7CxjW5yC24Z71A8pMYoHYwmxfudRlzrSDNJWTvEvzuXL9Q7RYPyVkVTmDUjHVZqlIGyroYoQYOsrBImyF+Bh5EoZcwukd2enUDCJqiqihp 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
|
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