Skip to content

Commit d0382c6

Browse files
jtlaytonbrauner
authored andcommitted
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 <josef@toxicpanda.com> Reviewed-by: Jan Kara <jack@suse.cz> 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-10-d1c4717f5284@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 1cf7e83 commit d0382c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ext4/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7298,7 +7298,7 @@ static struct file_system_type ext4_fs_type = {
72987298
.init_fs_context = ext4_init_fs_context,
72997299
.parameters = ext4_param_specs,
73007300
.kill_sb = ext4_kill_sb,
7301-
.fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
7301+
.fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP | FS_MGTIME,
73027302
};
73037303
MODULE_ALIAS_FS("ext4");
73047304

0 commit comments

Comments
 (0)