Message ID | 20230713-mgctime-v5-7-9eb795d2ae37@kernel.org (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 1D45BC001DF for <linux-mm@archiver.kernel.org>; Thu, 13 Jul 2023 23:01:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7D1616B0087; Thu, 13 Jul 2023 19:01:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 781286B0088; Thu, 13 Jul 2023 19:01:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 648B16B0089; Thu, 13 Jul 2023 19:01:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 556F76B0087 for <linux-mm@kvack.org>; Thu, 13 Jul 2023 19:01:56 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 339C7B067A for <linux-mm@kvack.org>; Thu, 13 Jul 2023 23:01:56 +0000 (UTC) X-FDA: 81008113032.09.8959965 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf03.hostedemail.com (Postfix) with ESMTP id 640FE2001A for <linux-mm@kvack.org>; Thu, 13 Jul 2023 23:01:54 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ji6lTm8i; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf03.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=1689289314; 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=DfjBjxffL2umD3at7zIZSCMf8pPY63MV5yfqFGWTHW6XpsAg4Rk3QnzwiUigWVcQcyZdr4 RfC2fGiekz5eKwUp9/6nVdxCkI3AHF+kBuZYnj6Woz9zxh/1pqDMFyI9nxTfarHKwTWzES DgSXJBoISYRF5iaQnjO+GpspgLcnaqg= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ji6lTm8i; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf03.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=1689289314; a=rsa-sha256; cv=none; b=aZBaCrjWrMmesLSXI7WjbjfawBd3oAxw5IlG/croHqOr3MYhedWbEDLbFmo9ORPlMBSP4d 71ZG3fCHvsrqBiiCggbU9iZ+QSroRgSUYtkkHkO4bW3ifBrbmhOUJa+F6O4eZq+Yu7+R2V TA8w2KHY6V+atrB9OSwCGdhrv73z9IA= 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 80B8861BA9; Thu, 13 Jul 2023 23:01:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC563C433AB; Thu, 13 Jul 2023 23:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689289312; bh=kIvw1OVi/OYz+atwIBCynX0q88XJ1zU1WapHn2pYQP4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ji6lTm8ixvNtDVVdWA3hLyHSMWJKcMADi3bT5BtloRaThTlgVtrnfDXRVZYz43eRu e46QVkCnWld61ntI9tgz1GRsuSCFqBU2ObStlUNmu2ITfHTBwbv7vJEVbd4VhZV50Z dT95XgUQ0gE/E1uvcZKi9FQTchZ0DfPl+ZI9RB22N2f/MLfNFP/JZ9fevITXI82Nnn gxkb+MeSgX88JSRcRtINCznpW+x3Bw6LJRgU7m1nPn5OW1YU0SQ5fO7Mc35+2Am2DI 3RZxGv1qzyqNs6VT+JidZtfoYQynlt0REEMl5HH24pEX9jmVLyVDYYNkSzsIu+nPLz p0XGmDep4V68Q== From: Jeff Layton <jlayton@kernel.org> Date: Thu, 13 Jul 2023 19:00:56 -0400 Subject: [PATCH v5 7/8] ext4: switch to multigrain timestamps MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230713-mgctime-v5-7-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 <ericvh@kernel.org>, Latchesar Ionkov <lucho@ionkov.net>, Dominique Martinet <asmadeus@codewreck.org>, Christian Schoenebeck <linux_oss@crudebyte.com>, David Howells <dhowells@redhat.com>, Marc Dionne <marc.dionne@auristor.com>, Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>, David Sterba <dsterba@suse.com>, Xiubo Li <xiubli@redhat.com>, Ilya Dryomov <idryomov@gmail.com>, Jan Harkes <jaharkes@cs.cmu.edu>, coda@cs.cmu.edu, Tyler Hicks <code@tyhicks.com>, Gao Xiang <xiang@kernel.org>, Chao Yu <chao@kernel.org>, Yue Hu <huyue2@coolpad.com>, Jeffle Xu <jefflexu@linux.alibaba.com>, Namjae Jeon <linkinjeon@kernel.org>, Sungjong Seo <sj1557.seo@samsung.com>, Jan Kara <jack@suse.com>, Theodore Ts'o <tytso@mit.edu>, Andreas Dilger <adilger.kernel@dilger.ca>, Jaegeuk Kim <jaegeuk@kernel.org>, OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>, Miklos Szeredi <miklos@szeredi.hu>, Bob Peterson <rpeterso@redhat.com>, Andreas Gruenbacher <agruenba@redhat.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Tejun Heo <tj@kernel.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Trond Myklebust <trond.myklebust@hammerspace.com>, Anna Schumaker <anna@kernel.org>, Konstantin Komarov <almaz.alexandrovich@paragon-software.com>, Mark Fasheh <mark@fasheh.com>, Joel Becker <jlbec@evilplan.org>, Joseph Qi <joseph.qi@linux.alibaba.com>, Mike Marshall <hubcap@omnibond.com>, Martin Brandenburg <martin@omnibond.com>, Luis Chamberlain <mcgrof@kernel.org>, Kees Cook <keescook@chromium.org>, Iurii Zaikin <yzaikin@google.com>, Steve French <sfrench@samba.org>, Paulo Alcantara <pc@manguebit.com>, Ronnie Sahlberg <lsahlber@redhat.com>, Shyam Prasad N <sprasad@microsoft.com>, Tom Talpey <tom@talpey.com>, Sergey Senozhatsky <senozhatsky@chromium.org>, Richard Weinberger <richard@nod.at>, Hans de Goede <hdegoede@redhat.com>, Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org>, "Darrick J. Wong" <djwong@kernel.org> Cc: Dave Chinner <david@fromorbit.com>, 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 <jlayton@kernel.org> 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/ZANAwAIAQAOaEEZVoIVAcsmYgBksIIvy36LZaWXx77QDXekEjnV6herdriJfAZSF KRvi1GJeviJAjMEAAEIAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCZLCCLwAKCRAADmhBGVaC FdpuD/4olF8PfkzpOMhKo0pYakgpPOkYsvbjRlnWul1JeLAyEulDwt7cUm7WvWS7sMfn1nmbiyP ZHDXA8DklrSv30kAkd/SL9dBOk9CqQRpnh3gYQN8VNdWNLw39gnLGtNuYCpAfLNo6atBt+fNyyC 9JTlkqthcsWlIIJg04NUID5P3Jx07BORb0Uye5L4hJyaE1uS3bR9dMrxhAWH4RhuGTPnQOnDXy0 8jUhXWSuWv5boD0GGnQiwKp0sMI/s08qlD+VHcAKA3ng2vs9Kgpqr37JvvET803NiGk8yj9pL03 zs0M+o+33FLV8FRVqOh+U+Jx4gU5h0mFwEp9K+Thq8cujHzoq47kEHiEUovgVSQuqftTIVBazJG hs4VXOKAnNx4QoIzUmqCsLgvvJMSxUqe1h6CftfWNBb74Gl7VROa7K/9RRLjvfgLUknDQaYmnWs uRwFrVVPpco6YGgC+fPrV0+xTVyKEA/2zTAlQWrS7tRu0NtjQWSaQcYgz1Gpc6JaotWcgbi9HFc DovY/3/xXCkw7YtqNGLZBg8SMoSWMoDxy7Uwz5OXs5uUpmFp0p1YgTS1GFz/wgOrNTbFHTHc3QX hRQiNndjZv+/zFzfH7J5roV04qDMIMAABTOlktx3N/eKz8JCFhz6AePPqjavoMl+dS8drsBe4xd SUt6/wNve4Dcx+w== X-Developer-Key: i=jlayton@kernel.org; a=openpgp; fpr=4BC0D7B24471B2A184EAF5D3000E684119568215 X-Rspamd-Queue-Id: 640FE2001A X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: w57axexos8ixj8rs4xdmng4c6d57edo7 X-HE-Tag: 1689289314-504064 X-HE-Meta: U2FsdGVkX1+FzmyBw+Ok7rqdsb79vFVI2dGAU77a/oCowUMLPDKC+hLUOdstWsLoPJuq7naxow1Ad1Ly4eSPGV/RHny0fgtPY9PV4ArFjjECzKVHFYHqbwgDe/Rj+76/E95OH+MxMR6SAYTdZCnGDEZph5wF8JAf8+XB2MDPzQxSLFzeepCaEsYT98iGsi1SrhMeYErH7mxKTd/2QKvDoMkddA5Ulu82xiEah40suJkKcswYWt3puFRAMBGm2sykKbmcrgKnIE8ByhlorRLC/0GpA/MkP5pwDvHF9Uumd2a5ApVnlXefjYiRxwTQ7/i8Lym/Z1E7mo4MNRLe+cn76pxDRfZnufyax4ysyuIzB7z4GIkZVTbJheNvWBZd8vHZd7prl0H+LrnyV2+/TUi9/XlAKyXX5oXbDgvoQudqdTCndncP6mjJ6tysS3JD1et/GBcXhu2CJ5Z+Tr7MqY0ioXfI55KhnTnPvwssXs5zxJ+rMH1mBjcynNwvlg4SUQi7jjRIcrDDIxQTo2361uSsm3tjxf4G2YcNWaajrDAN0rO3G/v7X15F/6D3/plqTrX+7f9IIo7eb3OXLFgbuBVxKnWP+Ep6Q5Uh5vN4/ViGKAFYV/Hq4SXyHfdM1CvpTjtWrZQE+aocRKdrCkkRVO0+xpC/TBMRWtypyaAYEh5hieAz5zGajgVp4L4R7s7lEESJ68Z9OESQ+ZdixY4I7gI64nPb7Ag2xj+u+IlddLyuzNTeX7zyLj9Z8fn+7cXKP77m8hTwoj2YglbFmssjO8abdw+DbVkEGSRf8Tj0HcZV71shXJ5+PnsONUGBwmJT6iorXrz70MHDz2t7N/TpYRb6RAuCJYApfmAUfSTUJyvaQGfSqrapzzqEbRCnqwNe2a35kG7ersMiHyKtcQBUh/r/lF1aK3QGDJLOFpdlURj4iwb5rCjtGqb7zLOG94ezfLu9vupg11eusWYMXY9zDC6 EIDYksw8 lI9ReqqD2lljdZf+YtcGT2bWyeZk/JatAh4MnJ4IHRoGw0Q+dHfjri6ktz5uN5xSMlx1rnLMGz3enAhQjB85QCLlfY9qz7qn/IBWDoSx/6fjXHDr+owUhCriHhFWQRx4jVcFxqXi1xvkY4quYo3YcBDn789l36FZtFlAvD0QZfyLmEE+Q2XBv6snDUbpJOdTeBb49cwIgpYw2rX2Y94vNIwXIudOfCwDDL+kGF6GVUmJONZXHpSOFIaogfWrA9UxJRFIcwfqRv76jaKAjiGC5dE8h83gg4fHx/CfLzilDJbb0IkDO6CLdyQvMsSsSMp80Xk55XKKPiiqVnhpXGmWlQ4tsalp0WV3M2Sk9 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> |
Series |
fs: implement multigrain timestamps
|
expand
|
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");
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 <jlayton@kernel.org> --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)