]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: convert to multigrain timestamps
authorJeff Layton <jlayton@kernel.org>
Wed, 2 Oct 2024 21:27:26 +0000 (17:27 -0400)
committerChristian Brauner <brauner@kernel.org>
Thu, 10 Oct 2024 08:20:53 +0000 (10:20 +0200)
commite2e801d6e62507c297ec2c102e24d09c90618e8b
tree39131782d95623d676ad5a392332176b213a4dae
parentd0382c698f9c9c80483987e1b4661b5d97a805d4
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.

Note that this also drops the IS_I_VERSION check and unconditionally
bumps the change attribute, since SB_I_VERSION is always set on btrfs.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # documentation bits
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20241002-mgtime-v10-11-d1c4717f5284@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/btrfs/file.c
fs/btrfs/super.c