Skip to content

Commit d7c7099

Browse files
committed
ext4: switch to multigrain timestamps
JIRA: https://issues.redhat.com/browse/RHEL-121527 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> (cherry picked from commit d0382c6) Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
1 parent 1c1b9f0 commit d7c7099

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
@@ -7402,7 +7402,7 @@ static struct file_system_type ext4_fs_type = {
74027402
.init_fs_context = ext4_init_fs_context,
74037403
.parameters = ext4_param_specs,
74047404
.kill_sb = ext4_kill_sb,
7405-
.fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP,
7405+
.fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP | FS_MGTIME,
74067406
};
74077407
MODULE_ALIAS_FS("ext4");
74087408

0 commit comments

Comments
 (0)