From patchwork Mon Aug 7 19:38:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13344820 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 05472C001DE for ; Mon, 7 Aug 2023 19:40:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 99EC56B007E; Mon, 7 Aug 2023 15:40:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9290C6B0080; Mon, 7 Aug 2023 15:40:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 77CD46B0081; Mon, 7 Aug 2023 15:40:09 -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 68C706B007E for ; Mon, 7 Aug 2023 15:40:09 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 3707E8067D for ; Mon, 7 Aug 2023 19:40:09 +0000 (UTC) X-FDA: 81098324538.10.0EAC4C2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf28.hostedemail.com (Postfix) with ESMTP id 5FA9AC0013 for ; Mon, 7 Aug 2023 19:40:07 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=M5ROeg5m; spf=pass (imf28.hostedemail.com: domain of jlayton@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=jlayton@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691437207; a=rsa-sha256; cv=none; b=EqGjOAuE0i9kkX5+n5ogIJ+6X2DYupvHwmEGi9+Q1l41ud8+Ux0Y2hTtJKNFtCAypwpz6A TaW7GgICTzrLqigvmb88s79n4UoSa3/05D7aHpsr//w+3Z8lqMOIKkyeZXCCzg3tPKmmmy IJSPspeDj9IQk2UqWhLlyAdJv3i1R0U= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=M5ROeg5m; spf=pass (imf28.hostedemail.com: domain of jlayton@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=jlayton@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691437207; 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=/a84V083NHT024cRsf9WnRaOUqWgHwwoKwcw+vy4r/A=; b=upgv2OyBTluOGpibcS4gSaNp1lz7mB1RIzgDeUR2AysiTdPuDjQ90wIaEseIK+JrCgh0bu mFotSckJ0tsCN8ob8+7fnw6NUHU6QBzNvqvlUO6cbAFMX1ihgV84iXZaSK3nNfxRJ2zZbw lKVYlrXBt47V+VyqTIPGU8Mvs92nGxE= 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 99BA0621C0; Mon, 7 Aug 2023 19:40:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82419C0760F; Mon, 7 Aug 2023 19:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691437206; bh=PNK9I4izb9aV2MBeRrTkRcd9XlwhZVP5eqLZiAT7h/E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=M5ROeg5mqDZa/42UL9kRZ08AsAdDHc/tKfuR/gThhQUlMK2+JDTseihwPqM0g9Lnk n7ZTcQslbKZFb1sVkaMh/ZHaChcc386d6k5Eu8WpPpdQpSmQW5n5m1gBJ/s/foOLoT zfyRNEyYgmop5nZ9c6aDUEflodYrjuKHCugZZWgr35mdN0BwR1J56hSMdaQwbSy4n5 hZq116WT518No7KTL9GXsyoe6lkSESX60cs2DaFQcpWsalXcKBqPaTZV9w3+RIxAN7 1iAfteN5TN7kegFnfbSJb9hYE5QO8Cj9MtqnalQfjy3dVfMI9GKJc0d3RYeNJo1F1P 5MfddqcTJi2Lw== From: Jeff Layton Date: Mon, 07 Aug 2023 15:38:43 -0400 Subject: [PATCH v7 12/13] ext4: switch to multigrain timestamps MIME-Version: 1.0 Message-Id: <20230807-mgctime-v7-12-d1dec143a704@kernel.org> References: <20230807-mgctime-v7-0-d1dec143a704@kernel.org> In-Reply-To: <20230807-mgctime-v7-0-d1dec143a704@kernel.org> To: Alexander Viro , Christian Brauner , 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 , 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 , Amir Goldstein , "Darrick J. Wong" , Benjamin Coddington Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, v9fs@lists.linux.dev, 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-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-unionfs@vger.kernel.org, linux-xfs@vger.kernel.org, Jeff Layton , Jan Kara X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=922; i=jlayton@kernel.org; h=from:subject:message-id; bh=PNK9I4izb9aV2MBeRrTkRcd9XlwhZVP5eqLZiAT7h/E=; b=owEBbQKS/ZANAwAIAQAOaEEZVoIVAcsmYgBk0Ug+PWT0Vv3ESucnQeEtJyJo2uwO3EuWfrSu8 hP5a+Awv6mJAjMEAAEIAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCZNFIPgAKCRAADmhBGVaC FUBNEACF8Vhf+Tmi4BAu5Pi/7+eri1QMakefx0kKWYx3C/c1hIuw+oe93XC06WYCXN8uinqEBOi yb7GB/eEjEdXpqFk9wHc6A7NQ10DQ+cxx9ywhBK8wokDatJwtmb4ZKcS1wLo3WWRjRW21tmlkQW sDvw3UKSUTEcv9Pjrz3Zfsvk8uP/OYnGMsAZqamCasFOZ3tt6etMoTmA0zCWlXfqJO+0Pv3df+R YjCvqy8FQeV484LsnlS+cOXpOSf8mvgqmJKhvk0+EDmf88uzdPNEkJ53SdnsnrAQCGl81BvJJq4 SrgFM9hoM1TggCiGCU9lsBmqYSVHYwZ1vYxmDFON7f+XCQ74GwybMku6vL2h51xx5K14BnF1j11 QIZJ0zoNexu3UIEzCkBVx9tMqGcR5Y6HT09yNXyOSlL3YUB8HC/MrxcW9BaOq9CiU1vELDHg0ML sYASZv5rPrVxM9hYgHX18EFHVu34Exsvbp0xB7O5WLFtscbSiiyH4K5hLLR5bkn3Bl6heNDJT3V FQ0I0eT1DuIw2cqH1gHtAhYjcDGlFyuVswfUkIWJ7Nk3fVC7M29zaSBouhv6bRoVg0sJZnMlWUo WMo0TwdGwynlnrvNK3LyjgQ1fF27l9ys0jjQY/e455EinK/9/h0TD5RlMgcnL3aS6S392xG2DgV /veMDgnDhzP9wZA== X-Developer-Key: i=jlayton@kernel.org; a=openpgp; fpr=4BC0D7B24471B2A184EAF5D3000E684119568215 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 5FA9AC0013 X-Stat-Signature: h7q44gk53kn7x77mo3m5p64jcf54oiic X-Rspam-User: X-HE-Tag: 1691437207-228831 X-HE-Meta: U2FsdGVkX18U96s09H1eWq4IbV2Wh2OP4iFJCO6EzpYQb3USbG6wHbihz/yIC3BNwgVho/o6eq6S9KOujlmddscx1UkIyi83HaLp69CNUL032hUdOiK1f1AsPy9k5WwziW8GhVVk8t3FObhsUYUvmqwrlUGyhIp5+vxf0XjYJheGJ9hzb2bkQMzA0SgdnmYYsCGMD5x97nFq2kqLeHlX/BGalFqgXBxPJdanJApStz/UwN/BWMZ8D4fXAjMjGMMJUNqBVaXg/q8VnawR98zsiMQhNeBc+1hCrTuR0xvlvMLcJxP8ecrfi+0Qb6sRBkpHLi4CRpb6+G1gk1g04wkVbP5Q1PuRM3MEF98TAM7DdaGrt9L9HRwxzVCqVb3cPPOXEHX7qQuOzre69N4PMV5IoD88+RfWUHvLTMHhpORLJ8l5zZSuq462/8yojKLU3qI7nOeJ5Vhzd4IXHvmumge/XShydr0VTkokphN+YXVO3eBd3wnUmjuhnHK/SqJpiSOVS660p8sGJG8sRvJpv3xcmp/SL3YwDXM7dJOv69PM8+rK8KcRLGboggwucY2MupUsRHJgEIFwwo73qPdoHnMsiw+Xv4V0V7+BzO2UDsFcijYJ20iqyDVAtevEx96KUYEfChUSWz/2n77XgBWsIDfpSzHp6TO84fh+Tx6/HqJBZow2oZFKNnxXskH+5qU+hyFQWpKOFqzOKP4km29DhiYzCTUxUj+r9+ml2OW2BR9fUpUATnST06MrXKBkCrCD4Tj1j1t9n2bfbDvvcdx6gscti5514/F6Y0Ctoq7mao456wjqocCSPNgtohiEPXaSFp94tK52zHQw6a6Jc8KB9sA9QblMSnkBrin8PRteDX2gJDLcLQ6NGjA+9FxhPB9u1aUm5JqpaHBMhZeX5Ripnb+DqHfuzfUWsglEdqoHsGTHDnclC2ToICsXR5ytymSYAbKFp/GkEAwc8ujwjRTZ2Hf lqzB3kuJ nypnwyqY7g+LmR9PDY5Jrev4/XAtBN9gFZKqkmly+YiXai8pgGz+aXiPYBCPZz5LrBRPRQSMoBdoF8kJJpdYR3Yc77J6VkCfIHEyQaxO8Io/WwS7Mmp5aS3dsfNzI0mJyETDI54td6kqJMRybLPpRBVfCDCCpze4PwUeewiJhomUFhBPmRQjRa2JnkL4i+PEYyxiBIwDdgOZU06DjjxeD7kX2MR1qV3z1YIg4sGWjR8lb8fz16U1Lv6QCkuTnROPK0S5xocuzS6FDQd43rhZzjbJq9ucjH+ijlEsfnYjUAmol0C4UJsq4kWJVN+SlsRWqWcT69ZtNahJzp1fdHRYBcCmU98t3+lH2XNHp 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. For ext4, we only need to enable the FS_MGTIME flag. Acked-by: Theodore Ts'o Reviewed-by: Jan Kara Signed-off-by: Jeff Layton Signed-off-by: Christian Brauner Reported-by: Ken Moffat Reviewed-by: Jeff Layton Acked-by: Jan Kara --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index b54c70e1a74e..cb1ff47af156 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -7279,7 +7279,7 @@ static struct file_system_type ext4_fs_type = { .init_fs_context = ext4_init_fs_context, .parameters = ext4_param_specs, .kill_sb = kill_block_super, - .fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP, + .fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP | FS_MGTIME, }; MODULE_ALIAS_FS("ext4");