btrfs: have it use inode_update_timestamps
authorJeff Layton <jlayton@kernel.org>
Mon, 7 Aug 2023 19:38:35 +0000 (15:38 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 9 Aug 2023 06:56:37 +0000 (08:56 +0200)
commitbb7cc0a62e47b5810ed2721fc7eaaf709e42b966
treebbbe3be4b393414309738082921fe6b16cc28ad1
parent541d4c798a598854fcce7326d947cbcbd35701d6
btrfs: have it use inode_update_timestamps

In later patches, we're going to drop the "now" argument from the
update_time operation. Have btrfs_update_time use the new
inode_update_timestamps helper to fetch a new timestamp and update it
properly.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230807-mgctime-v7-4-d1dec143a704@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/btrfs/inode.c