Skip to content

Commit 0269b58

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. Acked-by: Theodore Ts'o <[email protected]> Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Jeff Layton <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent e44df26 commit 0269b58

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
@@ -7279,7 +7279,7 @@ static struct file_system_type ext4_fs_type = {
72797279
.init_fs_context = ext4_init_fs_context,
72807280
.parameters = ext4_param_specs,
72817281
.kill_sb = kill_block_super,
7282-
.fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
7282+
.fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP | FS_MGTIME,
72837283
};
72847284
MODULE_ALIAS_FS("ext4");
72857285

0 commit comments

Comments
 (0)