• Linus Torvalds's avatar
    Merge tag 'v6.6-vfs.ctime' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs · 615e9583
    Linus Torvalds authored
    Pull vfs timestamp updates from Christian Brauner:
     "This adds VFS support for multi-grain timestamps and converts tmpfs,
      xfs, ext4, and btrfs to use them. This carries acks from all relevant
      filesystems.
    
      The VFS always uses coarse-grained timestamps when updating the ctime
      and mtime after a change. This has the benefit of allowing filesystems
      to optimize away a lot of metadata updates, down to around 1 per
      jiffy, even when a file is under heavy writes.
    
      Unfortunately, this has always been an issue when we're exporting via
      NFSv3, which relies on timestamps to validate caches. A lot of changes
      can happen in a jiffy, so timestamps aren't sufficient to help the
      client decide to invalidate the cache.
    
      Even with NFSv4, a lot of exported filesystems don't properly support
      a change attribute and are subject to the same problems with timestamp
      granularity. Other applications have similar issues with time...
    615e9583
file.c 131 KB