xfs: have xfs_vn_update_time gets its own timestamp
authorJeff Layton <jlayton@kernel.org>
Mon, 7 Aug 2023 19:38:38 +0000 (15:38 -0400)
committerChristian Brauner <brauner@kernel.org>
Fri, 11 Aug 2023 07:04:56 +0000 (09:04 +0200)
commit51b0f3ebdbbf440b2d04f24cff2ad8b39d11842d
tree363e2a70cb0683fb443c600440d8c531caf5e70c
parent6f4aaee3faa84f00d38bfaba88a9f75d8c78e7e0
xfs: have xfs_vn_update_time gets its own timestamp

In later patches we're going to drop the "now" parameter from the
update_time operation. Prepare XFS for this by reworking how it fetches
timestamps and sets them in the inode. Ensure that we update the ctime
even if only S_MTIME is set.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Acked-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230807-mgctime-v7-7-d1dec143a704@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/xfs/xfs_iops.c