Message ID | 20241010-tonyk-tmpfs-v6-6-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 BFB7DD24447 for <linux-mm@archiver.kernel.org>; Thu, 10 Oct 2024 19:41:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A03246B008C; Thu, 10 Oct 2024 15:41:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9B5546B0092; Thu, 10 Oct 2024 15:41:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 87A1F6B0093; Thu, 10 Oct 2024 15:41:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 66E896B008C for <linux-mm@kvack.org>; Thu, 10 Oct 2024 15:41:39 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id B3E851A0752 for <linux-mm@kvack.org>; Thu, 10 Oct 2024 19:41:32 +0000 (UTC) X-FDA: 82658712318.07.72BF2E3 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by imf05.hostedemail.com (Postfix) with ESMTP id 9A439100009 for <linux-mm@kvack.org>; Thu, 10 Oct 2024 19:41:34 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=gdw40U8C; dmarc=pass (policy=none) header.from=igalia.com; spf=pass (imf05.hostedemail.com: domain of andrealmeid@igalia.com designates 178.60.130.6 as permitted sender) smtp.mailfrom=andrealmeid@igalia.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728589253; a=rsa-sha256; cv=none; b=ekj2updKnffiamWI5/R3VQDRsLEXnuJVJeaCJSMOCJzscIYQ/JmG1nrBBRqezoQNFkcWsr hkQ/gkLGOK0HKwnhXGJt1nBEY2x389d4kpjqrDNQkGEJw7WRJM2SILAe5TJdRstFyqh7g6 ZW/FcpoZD/A8f5BX/pMWaCiZAkd8z50= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=gdw40U8C; dmarc=pass (policy=none) header.from=igalia.com; spf=pass (imf05.hostedemail.com: domain of andrealmeid@igalia.com designates 178.60.130.6 as permitted sender) smtp.mailfrom=andrealmeid@igalia.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728589253; 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=VzXfvIbzNG0CSJ+bJDRaQbQX3trBLicfbCXoWczurs8=; b=y7S9y6/Cd9nBcHiQ15bKOdi3ZS+Dmaqx8DGkN7+ncRH6rBiIOTYgDTWAjbxHci8JN2AEbz UgaQtit40CXcC25RVq6LhIAFUwITSkZdvp4YyQPHq3E7kHYrCZe6RELKuTcI3kfa7Z/Plz NDVjLblMEdcNs/jfqGtbk458ntK0EG4= 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=VzXfvIbzNG0CSJ+bJDRaQbQX3trBLicfbCXoWczurs8=; b=gdw40U8ClqfhBNEr1zvH72DVze ei/o8WrtCUhyyOBxKWaOESNuBIM15Dnar7hBW/4EIqTwb3xfHTvvKWmrM2jcJ07SSqrWCnGhcMuBx OmZnI/kmTHDgMBqxOIfkFRPIzYBe3ay0VysEQqATyKPnMrZZok+8Xz8bZU+BNhlmao9bUfyzRFnLP endEIXVlclO+Q7IRSMHMCELHso5NIZpycJLpRgV5mpZcA+dKJjSR034h4SHkPxDTO2djEpcuoHZ0R 4bktloCNris/aaWJCEljs72STAPAvtsHs8m9TCIEPvUEf2qdj3rvIqXVgF1iELs23iWDjQ14rgrGA sBZ9+Ctw==; 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 1syz2L-007SHz-30; Thu, 10 Oct 2024 21:41:25 +0200 From: =?utf-8?q?Andr=C3=A9_Almeida?= <andrealmeid@igalia.com> Date: Thu, 10 Oct 2024 16:39:41 -0300 Subject: [PATCH v6 06/10] tmpfs: Always set simple_dentry_operations as dentry ops MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20241010-tonyk-tmpfs-v6-6-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, =?utf-8?q?Andr=C3=A9_Almeid?= =?utf-8?q?a?= <andrealmeid@igalia.com> X-Mailer: b4 0.14.2 X-Rspam-User: X-Rspamd-Queue-Id: 9A439100009 X-Rspamd-Server: rspam01 X-Stat-Signature: 9gxsnqdxt5m7qsbcwkofo5ego7z3xdxt X-HE-Tag: 1728589294-613052 X-HE-Meta: U2FsdGVkX19i8CHYHFB1CzYsLrlE8ty1tk5vduc6mkPF+TitFLe+UoUSaMMYQWQJ+eT6MrCBI8bkpiPBu2FE/6NBr0MF7y+l5yMtpQkSud8hzr1vxiUEa0IgcFFdK8+FCVK6mD6CaI6V+6wWoZZcis5ZVNQDxuAjLJe75Ban6CzSOZMvVlW6xVoBA/plIHl8ttyiA7cBOA1Rn5hqdHq4RJy69Yi1b1WR8OFg4YiYKq88x277035HGJKaUdjDfk+adPOXfgNxOipZ+K5b16ee2gyc08JOsFzSyYio5ESGzxyHBxH6dYykvmHhbtyd5dGul5qUkYr1L0d+HWzV4i62WFYM2iVa0UpTZ5aam2uWOrs3BIj8+xvVqzAUGTctdd3UjDg2JEVFwakg0s+7t3VzjUd7IR+gPOqyt55uoLg4JbvI7Gd6mzzZDRt5Bf77CB2w0OiVjkj80CYAzcd8ltq4Zsw4sOAIPGmk1a4VIkzTbiaCYvVbWZldYyJcUhY76U9zIY4XirtHzvCJ+njyFraA+HVuOKARgXusaYiM+X5LcYNDMQKmOhTqtBYQdgEEtvRtIvVGhjlV+hrwd+45c9oIjykntY7bDVWcrcXKB04k7dDNXMAI4iyFjTN1/X0b5Binspc+3LufiMj6Qw1GFzkP/tWBd9KzwpvCBSvhyFMI7Cy7YvwrzNlCM0Y5WaVv8d8c5fzkiJNi0wx4Cyl0dwVCHQJr2rmzNh5DfufpezoDRDcCJB3Icsevc9aaUfR0mVOB63wAS1l8PfPY5G3bB+nKLUHwEMVn5PCevVUnlvs/ouZ4/AmyzubnBnwj9IMjvkNSQZwPcvgHsJbGAvGlTpqHLjB42XqOsZtVJmFGDdYTOXn+rZgdGz6M2xKCAHfLcd/8JlcbLrv3Rb2pWguYRUxommdD1nvMiNH3UBmEXQkGgmKEktu0lk1qoZZNjf2GMVD5+/fD6pMe9giNex7Vt8I /7fdPU30 ciYb3Ff0FjNh00780Lt/yNLwWF/Dcztt2yk/fSJqidjwLYM4jAKFvVOeSpQZPvY/3l9v6gYJP4lf57YTOuh4olj5aX0TBVZCekmTTPIqx75HQH86gAjBDJoPhKv1854g8TZ7iNyauxMTftpKVp5bjEMsabEVsEaZlsUOJSWk8ebZs8JqtvEX/TRfptlfi1NsD/NE2f/QNia4AOxkUGLEV6+u6Wc/7VQ4ts0qyyY0LutCsk+MHtHhREqB3jQIWJEzuwlXQzfHgdjYhFIwymdbvwG6vg7RuN46kP8YvT3BPqKOKrY4yOaPn2FcXIbaMJKiXzi1W9Hki5ejY5Gi65SUzKLS/PJETCOTec1dgLBQjzaAdABV4H5VU+7JCHHsgSiW+QrGE 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/mm/shmem.c b/mm/shmem.c index 4f11b55063631976af81e4221c7366b768db6690..162d68784309bdfb8772aa9ba3ccc360780395fd 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -4662,6 +4662,8 @@ static int shmem_fill_super(struct super_block *sb, struct fs_context *fc) } sb->s_export_op = &shmem_export_ops; sb->s_flags |= SB_NOSEC | SB_I_VERSION; + + sb->s_d_op = &simple_dentry_operations; #else sb->s_flags |= SB_NOUSER; #endif
Set simple_dentry_operations as the superblock dentry ops, so all tmpfs dentries can inherit it. Signed-off-by: André Almeida <andrealmeid@igalia.com> --- mm/shmem.c | 2 ++ 1 file changed, 2 insertions(+)