From patchwork Thu Jul 13 23:00:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13312719 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 983BCC04FDF for ; Thu, 13 Jul 2023 23:01:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 141DE6B0080; Thu, 13 Jul 2023 19:01:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1192F6B0081; Thu, 13 Jul 2023 19:01:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EFBA68D0002; Thu, 13 Jul 2023 19:01:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E3A546B0080 for ; Thu, 13 Jul 2023 19:01:37 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AC7CB1403E4 for ; Thu, 13 Jul 2023 23:01:37 +0000 (UTC) X-FDA: 81008112234.23.3AB52FA Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf28.hostedemail.com (Postfix) with ESMTP id BBCB5C0007 for ; Thu, 13 Jul 2023 23:01:35 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=hh00jwFL; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of jlayton@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=jlayton@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689289295; 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=6nWojr0hKqa4JaCj2j3XdG2IwZm8djxTYWn9rXHaZSQ=; b=oItmYt0bkiVMwqrq1k8aJyBWBDOM6RUmlIUa5BZzCAt56OsymyqAyPIIAhH1kJaELYgPh+ wp+gUyf8kw+Mhs1PSZSqkT1LPS0qXcVUHHJcw7oOZK7SJHEdDGR5jIQ4Y2Wl/jmUuv0ooW /Dp8Uo9yfc7NzAIh752VE9FtHpmbspc= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=hh00jwFL; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of jlayton@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=jlayton@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689289295; a=rsa-sha256; cv=none; b=YgikdvYphzBQSjgu44QukKZ9Pc/s1s2mFS2E7iUFpv6b/Q1NhwD+yUy+swQR2v+9sYam5l Ldg2gFhjHRy/KZU+SlPupGq4DCh06jw2Y/hxqZqHZ4w0LDs9nEvbYwqtQxfhUsdycYT9qY oIxrVLWAe+4EP+t8R1M4EHaDZjRyLiA= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 00B2F61BBC; Thu, 13 Jul 2023 23:01:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AF0AC433AB; Thu, 13 Jul 2023 23:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689289294; bh=1/8G5JaqUI6KuuI2rdJCgZt0gS2ge3CDkWe83TSi7uM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hh00jwFLXVTfcKcYi6RPk6teBq7zejtWeTElcr3hLDz8IAh3S2IemMNuHXvNi3H4F QeScQzWiLdKG7tjJSKUXq0nR4EDtj340vqrwNrAGN9Ia5Apqw1huo7Ebzqqr+YuBHl S8vH6aKqZUS7hfoeQEutNX1WiQBlgdv6b6HX5VFk8w3yzBCsNmYk/OuKkH4+kmf6Xs IYNGYH5akbWDjFEM9PyjTvjKeVnl1B1Cl+gOPyof1qwofcutPAzvLpM0Zt3wUBMvdk wMl3V4hvpXSC8ipgZ4JRx+E2h8IU4wBaWS/eUE+Wwxz7Pdirtue9IXVzOudQEM4w2F cFAbu66hjm5kA== From: Jeff Layton Date: Thu, 13 Jul 2023 19:00:53 -0400 Subject: [PATCH v5 4/8] tmpfs: add support for multigrain timestamps MIME-Version: 1.0 Message-Id: <20230713-mgctime-v5-4-9eb795d2ae37@kernel.org> References: <20230713-mgctime-v5-0-9eb795d2ae37@kernel.org> In-Reply-To: <20230713-mgctime-v5-0-9eb795d2ae37@kernel.org> To: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , David Howells , Marc Dionne , Chris Mason , Josef Bacik , David Sterba , Xiubo Li , Ilya Dryomov , Jan Harkes , coda@cs.cmu.edu, Tyler Hicks , Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Namjae Jeon , Sungjong Seo , Jan Kara , Theodore Ts'o , Andreas Dilger , Jaegeuk Kim , OGAWA Hirofumi , Miklos Szeredi , Bob Peterson , Andreas Gruenbacher , Greg Kroah-Hartman , Tejun Heo , Alexander Viro , Christian Brauner , Trond Myklebust , Anna Schumaker , Konstantin Komarov , Mark Fasheh , Joel Becker , Joseph Qi , Mike Marshall , Martin Brandenburg , Luis Chamberlain , Kees Cook , Iurii Zaikin , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Sergey Senozhatsky , Richard Weinberger , Hans de Goede , Hugh Dickins , Andrew Morton , "Darrick J. Wong" Cc: Dave Chinner , v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org, linux-btrfs@vger.kernel.org, ceph-devel@vger.kernel.org, codalist@coda.cs.cmu.edu, ecryptfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, ntfs3@lists.linux.dev, ocfs2-devel@lists.linux.dev, devel@lists.orangefs.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-mtd@lists.infradead.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, Jeff Layton X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=769; i=jlayton@kernel.org; h=from:subject:message-id; bh=1/8G5JaqUI6KuuI2rdJCgZt0gS2ge3CDkWe83TSi7uM=; b=owEBbQKS/ZANAwAIAQAOaEEZVoIVAcsmYgBksIIu7118tb5CNCK7sZ1VFW0yB4BVg1dD3GIAv 39qas2sg2GJAjMEAAEIAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCZLCCLgAKCRAADmhBGVaC FUn6D/49/foLE14L6mU0xG1UWjybA4xy86vpS7roooMdiLD221RNkxIE52QBUyp5CX2APfX200C xgbwOJEpcptUud3PcBPoF8COlI/ERe5e9OpVHtCre8aWzg7pBf8pyMnE+xoIlAU6CcTJFa9NChV Olh6k+5lVwTnIXRD08nJ08naXSWCIsW8EAkrCywfB0ucIPaAdk5yfs6ZWKvzIJMOzvf08q/tyH9 IPHUxUX0sNKpgXmXfCVLjFp1wKn7r8FJxarJeURYrLr5rWYLdmmuZ3E/WSTwdKR9okSva8BrC+8 tkEb9EnYwIQbXojiol0Tl6DrLrvHnxRVaDPNi3FrTXczN8j1sYa8/j8LsuuDJUAGBKU/GsZoV6Z k8IiUfrDxYkoLOcyjqRFCQVEVVuF/LdfPx20g0wWhX76uRq9NHs1ExBBUfZaYnRhSrGmyGs9DU0 XElBc5CesLSUUltqLb6O8VK6s1T89MT30rnP5PaV+5o2tpoJN2Dh5OP3DRv6N0IaV51inxOzm+1 bQZO0+M4M9zfgjIsLAEUgrLh1kmvhU8dp1bTqcY+n6Xy39Cw4o2bXh+v+RGZBC/3Kum9DwFRvus MJ1kz5NoZfCBO7DrdUL+sgTN6tbKn57fiTUf2f+6Sk0T5YVQSiZB21hj7z5csvZrdxGKTu7jyCs h/2N1SUvw9AsY0w== X-Developer-Key: i=jlayton@kernel.org; a=openpgp; fpr=4BC0D7B24471B2A184EAF5D3000E684119568215 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: BBCB5C0007 X-Stat-Signature: tgozbthnrrpjcyny1r699chaqqxa5saa X-Rspam-User: X-HE-Tag: 1689289295-889842 X-HE-Meta: U2FsdGVkX185c1tN1XqSHEoBrdnlvjjdKwtx57Gap5V+HIQ7qfiQ0Wld6dfpYbL7pDD1263K9h+5UyzOZBbtShWcE94fKct1zPBtNTek1WiEl4JHk/19SD0YG4qJfK2vjIwgwin187Alib7QuXpYppYg6pgdACCMWhWCj1UaebPaiVx3AFMcJsBL/cwUF/uRluWb3To8ONF7FE0h9+tde9/MV6c+z6xuytv3ADVO1UZ3Jd4DcnjosxAC9tW1zRFbajNvrb7UqgWgBPH8oX+Zo4WXLhFyzq1vXfs5cSycmZfxcxvZoKweAEaYN/dHXEiROvpKtOWKyDKbQn67orN1kWqaTTEWR9UO5EjRiZA9M954hjBHa9Cy2+NvD6UwP9wVD9NYNADizooHWclqUkHe/aJhD3yKbzxGkQB4njBp3pBzPZs0ZJ3Yh2AJlpINarIBIELHMN2Ck6x+cEs0WR89PXDRRNtqFImV7C3V0QCZJxfhUtMI3/dFF+pwkEHy55inFqpn6RY+Bm9jn8Au2MID1DfUX2cvDisLXd1TCUicqHo3DzlSZnxsY9LFzlllY02nJrdrTkuj8n810bbU8Zk4EkuHBOE892qxcuOd4N3kMeiYgUmtjnSbKEMpIviu12onFNkbqgqgprBh2y78Gk5QX0tQIu2bQhJOYItUI4gjIWMUwzvFwMWviQem5/bUzsBAYVPdjMnjXDTIj5doaLD+tk7V1rJT0RR+Mtbgua4zgkFNF+pHxcR5zL+XQc6e3flaWc07SDWBxm+IaJn8h1jo3l7/KaBZDXg8WYp6IdKwX6Ydkyzf+BPNSRKtVaT2TNWp23psUIHZmYZ5xsaTYx+k9ErP5Zx+lyoepkRrJ/chlxm/da2n6RMoP6z7Vx5fq+Bea5EWgjTyq+tDcqRc9i1GC/tqlgBZiqJt5ooUPsekmRsOtSjmNHajlSKMZnp6tSmC8liTIHjp9gNVQDxSuA0 RvKJusKl cBOewDOHMTwCqziPinevtXmJKhxri+dCd7Ev8vBr5BrxXpNhlaSgDdn2VD8NiEIotmf6BtuFDYjOmS/0vuxLswIM2opyCFEnEHwxyE/sfcER6+CIU2dyoo6+sLW6XwlF0RPsnF0L9DTxaHEAFCPV2FT7n1JsDLAHMW9DwdI92lVcKutfDkRcwvo/Bc7BB4qD0tiWNd6YFwz6Z5O/wRpPUPP26VzfTfbjigqi2WZzWtD4Ow6K8GIJt1dF9EL2AQIfJA5pegtGxqEG+57ioS/OcO3ia+xGobZDhZbhgpKUmkDo26m7IA3XB+OudSML7eRwQvsY81zB31eL90qz5MRBa0P14hcbu6TVzsbK6 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: Enable multigrain timestamps, which should ensure that there is an apparent change to the timestamp whenever it has been written after being actively observed via getattr. tmpfs only requires the FS_MGTIME flag. Signed-off-by: Jeff Layton --- mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index 654d9a585820..b6019c905058 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -4264,7 +4264,7 @@ static struct file_system_type shmem_fs_type = { #endif .kill_sb = kill_litter_super, #ifdef CONFIG_SHMEM - .fs_flags = FS_USERNS_MOUNT | FS_ALLOW_IDMAP, + .fs_flags = FS_USERNS_MOUNT | FS_ALLOW_IDMAP | FS_MGTIME, #else .fs_flags = FS_USERNS_MOUNT, #endif