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 <[email protected]> Reviewed-by: Jan Kara <[email protected]> Tested-by: Randy Dunlap <[email protected]> # documentation bits Signed-off-by: Jeff Layton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 1cf7e83 commit d0382c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)