]> Git Repo - J-linux.git/commitdiff
tmpfs: add support for multigrain timestamps
authorJeff Layton <[email protected]>
Wed, 2 Oct 2024 21:27:27 +0000 (17:27 -0400)
committerChristian Brauner <[email protected]>
Thu, 10 Oct 2024 08:20:53 +0000 (10:20 +0200)
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.

tmpfs only requires 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]>
mm/shmem.c

index 5a77acf6ac6a621dc7b5e7b46402b2b714b45bea..5f17eaaa32e2902228be7b245c5b3b11c5fb6a56 100644 (file)
@@ -4804,7 +4804,7 @@ static struct file_system_type shmem_fs_type = {
        .parameters     = shmem_fs_parameters,
 #endif
        .kill_sb        = kill_litter_super,
-       .fs_flags       = FS_USERNS_MOUNT | FS_ALLOW_IDMAP,
+       .fs_flags       = FS_USERNS_MOUNT | FS_ALLOW_IDMAP | FS_MGTIME,
 };
 
 void __init shmem_init(void)
This page took 0.062485 seconds and 4 git commands to generate.