Message ID | 20241002234444.398367-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 098A8CF8548 for <linux-mm@archiver.kernel.org>; Wed, 2 Oct 2024 23:45:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9A5956B0478; Wed, 2 Oct 2024 19:45:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 927496B0479; Wed, 2 Oct 2024 19:45:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 753086B0477; Wed, 2 Oct 2024 19:45:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 3EC836B0473 for <linux-mm@kvack.org>; Wed, 2 Oct 2024 19:45:18 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C2C82C04A5 for <linux-mm@kvack.org>; Wed, 2 Oct 2024 23:45:17 +0000 (UTC) X-FDA: 82630295874.04.FBBE41E Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by imf18.hostedemail.com (Postfix) with ESMTP id 1466F1C0009 for <linux-mm@kvack.org>; Wed, 2 Oct 2024 23:45:15 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b="R/1/uZzI"; spf=pass (imf18.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=1727912676; 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=KXLeYwW1OCCqt0oK34O4XtdDejRlj8zSL51Jo9mqNzY=; b=IgZoCWX6WRn+P44wc6BXneMuvLQg4x9iZf/CtUhglZFth+FxVc/IJaWKWDiZjHMm8yaos+ J0kiMT1VvUjP866z3zYVBSha36LEHW2kj264IRsER7LGnqxlRmm84dAFTEuTSATEn1b4+s Sy+2ymHOF+Tp6VNNeqpPp5rNkBf1iV4= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b="R/1/uZzI"; spf=pass (imf18.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=1727912676; a=rsa-sha256; cv=none; b=xPbFP5ZLx7k34StOz6bNzr61Egrw5I3zb6OZYo2qCc4TGVlrQ3B8bxkB6oHsW02OeLrmY4 NUgQome8YDFGuKxoBE6ulP5Jg2zl//Seqf0ZiRTL+XNudVAqZnR+VZsY8lTnZC92F5C2bQ 7vp3btv9LKQYBnP2Wtxa3Yivx20jrAo= 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=KXLeYwW1OCCqt0oK34O4XtdDejRlj8zSL51Jo9mqNzY=; b=R/1/uZzI/kIq1MfL9Fyep64GAN DThJRyI7liLrxMsvDeAcg6HQv1z1Ydktk7c41UBYpBb6SSjONTsurzcfgayHZg7l7w6+BjRbv/xAB DP9pG7AKa2oReMvwGx3Ae/uX5AKWeV05+AoQUggMbeWFPoDkmlcVfWpYsFaMa3OwMQjNTvfCwzdOE 6tsFAE3ox7EsCugi/yvjLSJJ61mXHnko8SZzbTqWkIZ0CedMr0cb++XzjBjmNJpsZKc+zHVEKrJwr qyPVsw23JHhXUalI88GbHqQ7nkbaKLJMo8FDotp3h3zqxex+/7qTO7s0gmVWqRuJUFpMaIuwnKqgj G864n8bA==; Received: from [187.57.199.212] (helo=localhost.localdomain) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1sw91n-0045tc-JV; Thu, 03 Oct 2024 01:45:08 +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 <krisman@suse.de> Subject: [PATCH v5 02/10] ext4: Use generic_ci_validate_strict_name helper Date: Wed, 2 Oct 2024 20:44:36 -0300 Message-ID: <20241002234444.398367-3-andrealmeid@igalia.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241002234444.398367-1-andrealmeid@igalia.com> References: <20241002234444.398367-1-andrealmeid@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: 868qi1e39xr9q5orywqejpudtr8ypyjr X-Rspamd-Queue-Id: 1466F1C0009 X-Rspamd-Server: rspam11 X-HE-Tag: 1727912715-473347 X-HE-Meta: U2FsdGVkX18qhnIEi+k36/SgD46oMyS+U5D1MgZCar6Rfa1yhp9ukLAvQMGEhJuFtz8hm1hZIqF3tiKg+5n2CxsW1pMhObkxPZw0AxSqCO+8ydh0bUnRlTNSBhOIPLbDO0TuiovUI/wL+pUbmhU0vjabHc8daBZ4HspBQxMM+ZM9MiOllEggcCyMmFUXurM8LAkanyiRQ1AWlRlLwXvtokbDi/ItiRkhe2lX5VUwjR+jI4dE0cYXsZVPDsEpjk9BSly07eJn2eg8b6z+VI1xd5897r7TwrwQmNSZNSVAukyz8dUoZTMJZxQBqqkExnEsO9k+DZk+ZFHa1yuwYX959RhnKiWC+XwVeN2H8d7kJ0lMu599a+MlALOOrwZEMGa7AKf3LH8Lc9FyAiS99jRYR3OpyNEsujZQAx8o881lj+I8YRkxqnwuC6b4t+707KFL7yO1GCniyhMeIo/4brBZTpvoPA2uWg++2BI5TX1X/JWtZqGxkzxjQ4wa6D7kHE6OEplzZgcs57F5kW8vu239/RSlpYIukg/iJiJJ6ySa0OBs5H4PXVXzmd1UXG6Yr35ZhYsO+uhtlQ2AQKeVNSsuJNkIKk+AkgdlQPhWCUZCUxAqREdvvmcc+u9FGxsloxZb6aaNfVgoyquQRJ8O1amks91Jca1bRi0r7q77x1638kbUaGVnnlRnXUMK/bdMfoNhCOYN3KRQyg1Xg/9qnswRYWAo5gTFbrBZmYQ9r3oLMbYEC4qVYe9nBd/0qUIuA6vrsKAeT7/0hJ3chqA7HhA5hfxvYWBNM8HHAArfpp6N2b8DsesyL+iPo66jbpnR+AqjZLB38ZCWDsYlnguyE+oUPNcHruZBWwjjEQlZNDAaqIniyj8zGH/qq8ng0KZVOpV8hVK6649XpLs8hnGChXrskr9RmbTG/1zebSRD8IOlyDyL5x2+FvGMmDIyqjcGTcRq9wBT9pFCyCWki5vtweA 3yt7+nai 6MWivpklNKKMVrPSxVmqN4iz74Uyl6YjPnfa498N3y7fky1qnb6/Bq4/ICkznqOm/9/LAVdAW9hpCAOCwG+p8CfLf4OEMBKFTFkSrinHEEJcp05nN+6fxZ22rCVbm7wWG49jCg+uFIQKcD6LYUgOO/KXcVaBka3KB9BuMHkMYpPREfwaQQC0v4dsvpPuG/yQlu+3BNGuBfvYbvJInHpW+zF2/umyigVJQVyy9GSvThdFzkGYfU127DHIo23JKulKLVAF64WFCxZ0f3TyRcq6jWRAhzKwJlnbk0Nwx6rhZs2JlIo7V+ga8E6Q+ghlHAReOMOBnu2j1C9aAlJ8D2CNQ3SEcznZy0iWdcnAug0CZfaSg5S+t3KaVJq8BvGAL+xL6xZqt 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 790db7eac6c2..612ccbeb493b 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)