btrfs: convert to multigrain timestamps
authorJeff Layton <jlayton@kernel.org>
Mon, 7 Aug 2023 19:38:44 +0000 (15:38 -0400)
committerChristian Brauner <brauner@kernel.org>
Fri, 11 Aug 2023 07:04:58 +0000 (09:04 +0200)
commit50e9ceef1d4f644ee0049e82e360058a64ec284c
treec362c68f1fdfd81b7c6492f0241bee73a0abec9b
parent0269b585868e59b6a2ecc6ea685d39310e4fc18b
btrfs: convert 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.

Beyond enabling the FS_MGTIME flag, this patch eliminates
update_time_for_write, which goes to great pains to avoid in-memory
stores. Just have it overwrite the timestamps unconditionally.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Acked-by: David Sterba <dsterba@suse.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230807-mgctime-v7-13-d1dec143a704@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/btrfs/file.c
fs/btrfs/super.c