]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: switch to multigrain timestamps
authorJeff Layton <jlayton@kernel.org>
Tue, 14 Nov 2023 09:47:49 +0000 (10:47 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Nov 2023 12:32:50 +0000 (13:32 +0100)
commitf99988c2fbfea7b19b8ef174ba0175a540861f10
tree2b714169dff2d20403cd069f17b3d34a2ce5175f
parentbe49fa968f98cf797b16aa279b11c431199b3af3
xfs: switch to multigrain timestamps

Source kernel commit: e44df2664746aed8b6dd5245eb711a0ce33c5cf5

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
include/xfs_inode.h
libxfs/xfs_trans_inode.c