Message ID | 20241010-tonyk-tmpfs-v6-2-79f0ae02e4c8@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 CF6DFD24442 for <linux-mm@archiver.kernel.org>; Thu, 10 Oct 2024 19:41:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1C59B6B0082; Thu, 10 Oct 2024 15:41:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1743F6B0083; Thu, 10 Oct 2024 15:41:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0631A6B0085; Thu, 10 Oct 2024 15:41:25 -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 DC4216B0082 for <linux-mm@kvack.org>; Thu, 10 Oct 2024 15:41:25 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id D01411404C0 for <linux-mm@kvack.org>; Thu, 10 Oct 2024 19:41:21 +0000 (UTC) X-FDA: 82658711730.20.3F0736E Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by imf22.hostedemail.com (Postfix) with ESMTP id DE41EC000B for <linux-mm@kvack.org>; Thu, 10 Oct 2024 19:41:21 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=DWh5LAbu; spf=pass (imf22.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=1728589214; 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=sdXGjKgs/rhRe8l19F01/brI44jeC/ablpb8vlTIOo4=; b=jR1lyXZ4w0GwPfWWz+RyoG6YPDgIl2bHzNky2/5K8cicaeE11Q+U3vxixw7rav9I+MZqEO BOBxxBeqpAYvG2h1ErF42wL0YBrA0f9bhTsr8IzN2WAvRhFZKqqZiXqG0/jaY5zAdiQiog n+xLCIaFR0/XuW+QcXpJn6Zc+ToHwNA= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=DWh5LAbu; spf=pass (imf22.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=1728589214; a=rsa-sha256; cv=none; b=Z7dZiK841HI2kpXU3Bh8CgtZntyh1twPJwjNCPwmcOKBq0ouE5ITLmyzFpTdjzgW9gAZ9Z FdzV5mdF3vaWTf/mNDqrZsdUlIaSDkSr151aO6vUSN31pOsgfrKyb4QxC5l4bDO9+9aWIP AlOqNGgHObMahCWS/2xto1YlA1I5TFk= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: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=sdXGjKgs/rhRe8l19F01/brI44jeC/ablpb8vlTIOo4=; b=DWh5LAbuzvrFfI8q3pnduTIg0s RXIu8j3fHbDuSLBLGVQsUPFVBhbhX9XL5iBvP0PfwDrJpJFWYfbEJJVexYEcByIq/md6nNcVKO9VX lsEGXuYGUFtfvKdlEHpZGscyOON7IxJcGXhF17P3W5tmsZwb8RUgSusxruV+oi4LkGgHCkmPPbGO8 toQDAbyZixKMWnkXBYJx5F2P/77DtFxkskUlpuuhpUJ6NN3nDwuPfGlPeasXsW1TNA9yWA2wCscvs KypErmDLlSXacL7q+CPiTmQjQ2JHvTXQVrlp872EyvNHKj14nv+tAAmtcgWIgRvQHzjJaNWBDg/ci 07QFXuew==; Received: from [187.57.199.212] (helo=[192.168.15.100]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1syz23-007SHz-7a; Thu, 10 Oct 2024 21:41:07 +0200 From: =?utf-8?q?Andr=C3=A9_Almeida?= <andrealmeid@igalia.com> Date: Thu, 10 Oct 2024 16:39:37 -0300 Subject: [PATCH v6 02/10] ext4: Use generic_ci_validate_strict_name helper MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20241010-tonyk-tmpfs-v6-2-79f0ae02e4c8@igalia.com> References: <20241010-tonyk-tmpfs-v6-0-79f0ae02e4c8@igalia.com> In-Reply-To: <20241010-tonyk-tmpfs-v6-0-79f0ae02e4c8@igalia.com> To: Gabriel Krisman Bertazi <krisman@kernel.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>, Theodore Ts'o <tytso@mit.edu>, Andreas Dilger <adilger.kernel@dilger.ca>, Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org>, Jonathan Corbet <corbet@lwn.net>, smcv@collabora.com Cc: kernel-dev@igalia.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org, Gabriel Krisman Bertazi <krisman@suse.de>, =?utf-8?q?Andr=C3=A9_Almeida?= <andrealmeid@igalia.com> X-Mailer: b4 0.14.2 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: DE41EC000B X-Stat-Signature: q8bc8b9faz3x7kfkgmuar5wdfep663g7 X-HE-Tag: 1728589281-885341 X-HE-Meta: U2FsdGVkX1/a+BcjmFyXy2pPq7L31oNkvBqsKG9VByrnkjF3mBpdQRorwc3Bzq2iBl01ZHjzAHSpubDxEKOwnyhn2ZkzqRDP2nj8SFUv8LwNMJKzoIAHww2GVHoaMg9psYo6eshX8Tj3cBWy14jwvvVf5Ugj1uAgngbOp+CP6l6Am6kv4h54OhHXpKfHZfVCC0MpEAzlgPmIPca18rH5HXfQD34Cmgltl2NuBWoWfcYzR3aykf43ZNLIC3TKr7A3QfcYvUeiyIumSaPSj7H4pJIAYvKyNZppyIG47tAvkhq10FsKwijY14DPFLK6oZJaVtZ14WQBKvC7CoQpQZJi7+C73DArZB6trbTAHl4Lv4jNIkRsQ3o+sgwCkTevWY0blX0am7/smSmcAWgStowrQWikowzdU3+pGeXt/9fUmAmtUnUJyoyNKIkAxkPKI6z7a9TPR+Cjwig/wgoXjZlJW6zsf8BZqs5uPgUJd1S4+YVc0gl2JwkpccUAdHdmBtoCcewVeWiMEhLoradamE9KrmsVOQi7w3w9mdqym0uZFwhum3YDDX7IR6nj8KEotYHXXIGdMiw8igNF906gy5nJ45UtmF5oHMsbn0xoQM62eFLqp75EgEZzsH0vX1ULbKiVwLdfu+biqqMzE+8AERSz7XYON+SQq7s2CYVt2rnriisY0odMtmdbhp0DkXcUF6Ca/buO0BXy48nQOC27+pYYuK9wLBNVs+wwYrG1NTzcV+SR0JitUdhcojzO6ntO7MkTqAIHCmuRK2pDbXVfzpvMCZKPQEnx4y/aFuXk6SgDbL06wVYm/zGMjbkFagb22Lw1idFmjRvISfPxlXIWmq6KJa17cxqchM/2cJWRUngD5aaJWxZFFeIB21HWRswFnTnxlR8Q/Tc0gRkuuyYmBIRowwCIWWdr5KWeOIgkcA/PvYsJvpgHquCl5XzN4jDeFqzI1H4z7joD5BkYMAz7o4X KDtOZmT4 0dFpo6zqAnXbf5hABcMee9/U5vqZ+TiFZcvKdnQxlduVEqDiDfYSUYj8AVbIxZzYYNJ2Uf+Dnd3nLzRZQ0v91My3WJsBcJoAWEEfe7OXx8w0u1gJ9fFflzu8DRqdn3PlhC0jd2mxzxm6gYyugxMu4aF7hS0qxT292ynZAzJTswAAmHlFIWmr6jGYd6ES6drxgyj5kjE1hm0q9FDdrfKA6NobyCwFehiScqtbtdnUwBJI5N3p/K0VXu7LvCMQ7A27TsYJigigZh1gi/8bHo3hD6IfVB712UB/8ki+Ql9c1V4ETWYBiGgr+gClXjqZm6nJ3ziOSwGkwNwgQviTG7VlaL3nEjk9NrKErYIyZ73WczehGYf91ASIJJeQ4xIPAaziHyCm6 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 790db7eac6c2ad5e1790e363e4ac273162e35013..612ccbeb493b8d901c123221ef6573457193dd16 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -2395,11 +2395,8 @@ static int ext4_add_entry(handle_t *handle, struct dentry *dentry, if (fscrypt_is_nokey_name(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 retval = ext4_fname_setup_filename(dir, &dentry->d_name, 0, &fname); if (retval)