From: Jeff Layton Date: Wed, 2 Oct 2024 21:27:25 +0000 (-0400) Subject: ext4: switch to multigrain timestamps X-Git-Tag: v6.13-rc1~231^2~1^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0382c698f9c9c80483987e1b4661b5d97a805d4;p=thirdparty%2Fkernel%2Flinux.git ext4: switch 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. For ext4, we only need to enable the FS_MGTIME flag. Reviewed-by: Josef Bacik Reviewed-by: Jan Kara Tested-by: Randy Dunlap # documentation bits Signed-off-by: Jeff Layton Link: https://lore.kernel.org/r/20241002-mgtime-v10-10-d1c4717f5284@kernel.org Signed-off-by: Christian Brauner --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index e72145c4ae5a0..a125d9435b8a1 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -7298,7 +7298,7 @@ static struct file_system_type ext4_fs_type = { .init_fs_context = ext4_init_fs_context, .parameters = ext4_param_specs, .kill_sb = ext4_kill_sb, - .fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP, + .fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP | FS_MGTIME, }; MODULE_ALIAS_FS("ext4");