From patchwork Wed Oct 2 23:44:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= X-Patchwork-Id: 13820559 Return-Path: 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 62767CF8547 for ; Wed, 2 Oct 2024 23:45:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EA61D6B04ED; Wed, 2 Oct 2024 19:45:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E57046B04EE; Wed, 2 Oct 2024 19:45:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D1EB06B04EF; Wed, 2 Oct 2024 19:45:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id AC6BC6B04ED for ; Wed, 2 Oct 2024 19:45:34 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 4E457C0ADA for ; Wed, 2 Oct 2024 23:45:34 +0000 (UTC) X-FDA: 82630296588.20.DA204BC Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by imf23.hostedemail.com (Postfix) with ESMTP id 9FAC214000E for ; Wed, 2 Oct 2024 23:45:32 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=bka5vrt0; spf=pass (imf23.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=1727912667; a=rsa-sha256; cv=none; b=hQf2NVIb+zAmXtdthzO22Ou1xKF/S+Brb4jCY1cYTRJQH4oDeH0uCdNDvN+/vXjBkkoJme L0mUhwFiUNmErAABqr8l3V5UFHZLfckOO5h/gmgFJOKOZggMkyKy38I0Zik3+zdjxtYYdE MoxBtdT4xrpJ9Owp0sJDZkfldsnyqZw= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=bka5vrt0; spf=pass (imf23.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=1727912667; 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=Quu0dtbQ9E+zFuEMK6MzcOIEYam2pR7bqkVHBNP4Z1M=; b=5T1m8tWsJGG6y9c7hNsPUGKNHl6mHucnR6zpqQ3rjeTT+s23OS5TZCGXMnBRdvJwim4pSg CJ6fHLie3rOQ5bi730c6PHvj5m9Tmm/dAYz81hZqOzJdSijieXKKc+9BY2DMZfAYy6Haco YsimSg9Wi/RukyeK48hI0tUatEwfpyM= 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=Quu0dtbQ9E+zFuEMK6MzcOIEYam2pR7bqkVHBNP4Z1M=; b=bka5vrt0u16euP1xIhWZ/Kg1wh ar8IE3EbJsB3viwk03hqbcr4jQJ2jK9Xd6LueY/9eMGT++ho5OGh5/nR0NfR5aDwNNIoORZs/tzPz xFCknGIhr9MWfGMTi7ksYaVVUUNTC7KXm0a4Ifde3cNKpmNSRYxCGMWk/4ECZlxRe2NbGewsG7ttU t9jE5ElARxyxdq15MgdjrRrqqiW5cAx8boixraK6bpaUw1r/5E6uO6yzCTq45C4dbRy9hfU7qwsMV CmUkUxxnREwLcSVoSqLD/1vhksx9xUx1OfIaSteNU0kxODerKgSU6VvcJH3wt1Syiovvb9s8Zj6NQ rIR49aAA==; 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 1sw924-0045tc-N1; Thu, 03 Oct 2024 01:45:25 +0200 From: =?utf-8?q?Andr=C3=A9_Almeida?= To: Hugh Dickins , Andrew Morton , Alexander Viro , Christian Brauner , Jan Kara , krisman@kernel.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel-dev@igalia.com, Daniel Rosenberg , smcv@collabora.com, Christoph Hellwig , Theodore Ts'o , =?utf-8?q?An?= =?utf-8?q?dr=C3=A9_Almeida?= Subject: [PATCH v5 06/10] tmpfs: Always set simple_dentry_operations as dentry ops Date: Wed, 2 Oct 2024 20:44:40 -0300 Message-ID: <20241002234444.398367-7-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 X-Stat-Signature: z1zrmix1zkxagm177t7pirgy43t9jyju X-Rspamd-Queue-Id: 9FAC214000E X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1727912732-937301 X-HE-Meta: U2FsdGVkX184eTw1XkvJV/y8ei2H90rbK0wSqraZgQJYyv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kMmk+lniFBu0LiS25jTEPeRKKEC//VODX4OI0nvOxms6e3/xrxMhsrepGY+UO+m/gwx7ytHkbPfjY8gzBtboTOzudf3PbI1jAxaCKUAuNRgLITzyfwQVs15p/EuJjhe8ae6FkvTa1RNcVAVdxIoh9vKoc7EHiVm10ohvrBllGjeA9qS0QW8RRL/pE6ceRytIreErsw0OUMlHtAlEeVeJED9Ra9B7rWI4qCJvlmiRRCtlVbNng8yW 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: List-Subscribe: List-Unsubscribe: Set simple_dentry_operations as the superblock dentry ops, so all tmpfs dentries can inherit it. Signed-off-by: André Almeida --- mm/shmem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/shmem.c b/mm/shmem.c index 4f11b5506363..162d68784309 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