aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorGravatar Jeff Layton <jlayton@kernel.org> 2023-08-07 15:38:42 -0400
committerGravatar Christian Brauner <brauner@kernel.org> 2023-08-11 09:04:57 +0200
commite44df2664746aed8b6dd5245eb711a0ce33c5cf5 (patch)
tree3e3d2610f2eb79588562e27831f955e822708be2 /fs/xfs/xfs_super.c
parenttmpfs: add support for multigrain timestamps (diff)
downloadlinux-e44df2664746aed8b6dd5245eb711a0ce33c5cf5.tar.gz
linux-e44df2664746aed8b6dd5245eb711a0ce33c5cf5.tar.bz2
linux-e44df2664746aed8b6dd5245eb711a0ce33c5cf5.zip
xfs: switch to multigrain timestamps
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. Also, anytime the mtime changes, the ctime must also change, and those are now the only two options for xfs_trans_ichgtime. Have that function unconditionally bump the ctime, and ASSERT that XFS_ICHGTIME_CHG is always set. Acked-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Jeff Layton <jlayton@kernel.org> Message-Id: <20230807-mgctime-v7-11-d1dec143a704@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 818510243130..4b10edb2c972 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -2009,7 +2009,7 @@ static struct file_system_type xfs_fs_type = {
.init_fs_context = xfs_init_fs_context,
.parameters = xfs_fs_parameters,
.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("xfs");