xfs: switch to multigrain timestamps
authorJeff Layton <jlayton@kernel.org>
Mon, 7 Aug 2023 19:38:42 +0000 (15:38 -0400)
committerChristian Brauner <brauner@kernel.org>
Fri, 11 Aug 2023 07:04:57 +0000 (09:04 +0200)
commite44df2664746aed8b6dd5245eb711a0ce33c5cf5
tree3e3d2610f2eb79588562e27831f955e822708be2
parentd48c3397291690c3576d6c983b0a86ecbc203cac
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>
fs/xfs/libxfs/xfs_trans_inode.c
fs/xfs/xfs_iops.c
fs/xfs/xfs_super.c