From patchwork Tue Jul 25 14:58:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13326617 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 A8669C04A6A for ; Tue, 25 Jul 2023 14:59:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3AEBF6B0074; Tue, 25 Jul 2023 10:59:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 35EFE6B0078; Tue, 25 Jul 2023 10:59:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1D8A38D0001; Tue, 25 Jul 2023 10:59: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 0B2366B0074 for ; Tue, 25 Jul 2023 10:59:34 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C44F1C0D50 for ; Tue, 25 Jul 2023 14:59:33 +0000 (UTC) X-FDA: 81050443026.09.77DCCCD Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf22.hostedemail.com (Postfix) with ESMTP id C1B45C0010 for ; Tue, 25 Jul 2023 14:59:31 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=G4lNe8Og; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf22.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=1690297171; 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=X0oljiepnSz5gM+zvheytrmp9iA1L6amij6hJTcG588=; b=cXOW4zQS3xXAUQfG6/D8opWDQcfpsmv5LuzP8KuQIUJvrGL3B8uHJGcGtGGf/A/HKgahks t+mS6InEbYIuYSvcWQInMHu0dwqSm5teAJtrEJw4i5x05bV0WdYvna8Qr6/nA35XbHhDuo Zf06wOEpE0Z7NZUuw3rCnGJzPCpmi7c= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=G4lNe8Og; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf22.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=1690297171; a=rsa-sha256; cv=none; b=vP19ZivgTJe2Ir+PemWWOjwQ32AkSjeCBz2NA4ph1LHlwv1BOLbxn2Sjq6C91Q4ikISmhx 5QOBzb6H0df4lZlLCktIycHNOqiPg8Un14MNS1nflMU6CgdqX5mNtjOpSqT++9hUQUpTpU uJJhJwegIRwOPCuOp7LnBR9bEtHXAZM= 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 0026561789; Tue, 25 Jul 2023 14:59:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24A85C433C8; Tue, 25 Jul 2023 14:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690297170; bh=kIvw1OVi/OYz+atwIBCynX0q88XJ1zU1WapHn2pYQP4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=G4lNe8OgwdzIy+DkoO8bA4V3fq2HfOynEvqBH0FZcXI5mjKRSEQ1SVjY1pHApZqUk LmVSxl1WUBGP7yGLH/ATsMnAnQMEPU+QAPGj8qdwUCRyUhAcUv0FTDqFlH73mrgqZw FzXbD+KfSe8VN284suFEL1YtHLX5tEg7JJkEkQGz0MGrxMX8CR2SkfzChxuDfyTNeS ZXRDShsOopX0jA288qfXuKjqRRyiZ1CyY3mdX/g1AczrOzezsb6EzZ2F8AGwPXdDYp PORRSahQS9CPN8wTXE5yLGawxDIeRTErDdxD6OfHFhzLgjKl8kPDh2mkBPRjnVLKHw ehvrosoKitaHg== From: Jeff Layton Date: Tue, 25 Jul 2023 10:58:19 -0400 Subject: [PATCH v6 6/7] ext4: switch to multigrain timestamps MIME-Version: 1.0 Message-Id: <20230725-mgctime-v6-6-a794c2b7abca@kernel.org> References: <20230725-mgctime-v6-0-a794c2b7abca@kernel.org> In-Reply-To: <20230725-mgctime-v6-0-a794c2b7abca@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 , Anthony Iliopoulos , 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=843; i=jlayton@kernel.org; h=from:subject:message-id; bh=kIvw1OVi/OYz+atwIBCynX0q88XJ1zU1WapHn2pYQP4=; b=owEBbQKS/ZANAwAIAQAOaEEZVoIVAcsmYgBkv+MkANALyeokJ5uPYYXrLhMbqAMD2+dQLEEeI 3QOMYBSSseJAjMEAAEIAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCZL/jJAAKCRAADmhBGVaC FecsEADEGQ4YyezueKIIr3iE+LoOFLQ0lVcEMPslgKBrcsoHAYDw4xIHTfiRLmJTS/QKl6qdQ/d FSIkPrBSo4busWekGlohEMVxhED8IPediFhHYC1BJu3i2vSmxv2wo9z3DGJxddYsn1yasB7Jh8X V82bCE/S8+YwWBe/sU9UHYXIA/E18x/9Ut0FSPmZUwXbasPrZoaYGahxEDFFvONFPxKYVH6MIwn K4eVmycva/cc9eg3aJ9IoKpjm2lHJ6SlHwQREAxcyQZ+Tz4LAI9NG4I0N4mft7VwVj05wY4iuMV lkaoxH/4D3tYZmIldIJ9HahAnA+IlU9dZ/4YPR7iaTlZNdGssfn5cvsTHNjvp00H6KNNnr3nKEg JOy94wl7Ir1GrUPEDT1u+XQipTMQxiFjTQLc+igYmNNY+nLJu1edF6ewi3eMTP81b6gmzOHenud CQ3qmNNoiiQu5pItfIvt0j+K74oTiUZzOqrMqtEgUQ3flSJL2acI1UnY4m1h0JIEygBAMmXN/Ga 6TPHXNSLdiIKa44+muGKEdIXTv22lvk6eI3L4mwE12/sKh5INo3rOJmQKNhtubYrUtLDSvrLCQa a/tcAz4eG/zd6PdcWTx1yg8GKnXbxqwHniAFlSBVM+ziSpqGTe2fxM3iHanHqv1hysy6sBXln6X HdxNyY7YiReYS0Q== X-Developer-Key: i=jlayton@kernel.org; a=openpgp; fpr=4BC0D7B24471B2A184EAF5D3000E684119568215 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: C1B45C0010 X-Stat-Signature: 6jfig7bz3t8whx9okb9odffpyoyq75wm X-Rspam-User: X-HE-Tag: 1690297171-104480 X-HE-Meta: U2FsdGVkX19I1aOlEbCL5IS/p8UKK2DH/V0f04I6f+LwZAxCkYm8eR5esWUrpvaBl1OD5jCBA6qVKmdL6u3BuGcW7dbURaJPjOsZNImroLSaIIIB8ZRn7RstvbBgijXZmVk+9RyX/hdeSYNvuKpLzMxgEvE4LviG9D3t3yG2umZNilJRalC1Pcu11ie81quRMzIoNq4LLx5LCzzhH7PvGOUbm+ROFENYBNlADiwpXOL+uTJ0b0PV9VDUh1p1CpY7NDGCEg6Vit7vtAXrJvhb5qPdMYyNL7KzyhhfL5u3irsK9fhuDBiRbxbD/k2u3B9qC48CW45sCmc4735a0AcfSMrPCMvFYE388Cxwmx1qEPau+4GaFvHjDIqMArL1VpbCNx8CANELo89SKvs361y/e7XpkTcIi0HmZ7iciA6Syl2LjOepU7XQAfrYHNpAmmjM0DSZDvGo3pLEpq5T1rhMaYn0nLbPvOxM94/TqUGF5TuRJLFjGUXXwwhoMhVVVllA9vUZk3KIOrxiBB+DnSu2U8WiMbKtHgDrTuZATbeJB+uglVvjn8/syzit1Jicim3AaVzcVnLKaM7FASFj9CGkOKju0gZILIw0Pz/7NjqbNq8mWN2PJlQ2Z1jMHN9Nu1iskP3Y9ZCfGCfJcAnI9+Y0Uhb0l2y7WzpZuqJG1FPsRCghOp6JQ17ObxpOY4pD2xOJ4u2mlQjHlc6eb5HnJYC49/G/GbwGHOLhsMQW++3Uw1UUpiN3hJt8Seoc/iIsiuABsCuOm+/om9ThDy+MHP/LJGY71fgaPaNBoTIh6orDkWR0w1qJzUe7oycgg5CkRMbs0i5BA0KvAPk5le4vSpaBMFs52Ub/FHS18b3oNWua+NsqfzFB6Uwdmf4mFc/MsJpnk02LTFF+WbL0fnd9D9L/cpaBPGtnPEZZs2szfXerdVMlSLdNR0oHbVSbAwc0A1lXwpTOegps/kml/z8fX1k jvnffC2c 8Wkq1qgVI4CkeQeLmB10v0nNdYAm7/QrL4v5vulXblitKcRxDD0nz7xI+fqa4IlYqvjR8Vx+KSbH7h+hZZOi2NNutXnqfehU0TVv/G4v64wOyADiskFfADZro0DDYAh0aSGJmJfPXH9/jG1/Y3VDpUkewbPGkLUkgHxxaoGk3CL+0/dOoFsQ1XuZ2ts1B6LIh1Zu1m12EIkGsBAUmtpBlb5HYpJNUezsaqspMcGn497sODicKNFbYf+y2mQ0fq8ux+jlcKwv/sSwLjUmvdCGK5HdYIpE8UyLH9tUJMyL/S60itk6vbfVHU2TqfTvymsDxuOUvEqwWLkm8J76JKVbQohJQkNXHTmh1lbSi 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. Signed-off-by: Jeff Layton Reviewed-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");