linux/arch/powerpc/platforms
Linus Torvalds 615e95831e v6.6-vfs.ctime
-----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQRAhzRXHqcMeLMyaSiRxhvAZXjcogUCZOXTKAAKCRCRxhvAZXjc
 oifJAQCzi/p+AdQu8LA/0XvR7fTwaq64ZDCibU4BISuLGT2kEgEAuGbuoFZa0rs2
 XYD/s4+gi64p9Z01MmXm2XO1pu3GPg0=
 =eJz5
 -----END PGP SIGNATURE-----

Merge tag 'v6.6-vfs.ctime' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs

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 timestamps
  (e.g., backup applications).

  If we were to always use fine-grained timestamps, that would improve
  the situation, but that becomes rather expensive, as the underlying
  filesystem would have to log a lot more metadata updates.

  This introduces fine-grained timestamps that are used when they are
  actively queried.

  This uses the 31st bit of the ctime tv_nsec field to indicate that
  something has queried the inode for the mtime or ctime. When this flag
  is set, on the next mtime or ctime update, the kernel will fetch a
  fine-grained timestamp instead of the usual coarse-grained one.

  As POSIX generally mandates that when the mtime changes, the ctime
  must also change the kernel always stores normalized ctime values, so
  only the first 30 bits of the tv_nsec field are ever used.

  Filesytems can opt into this behavior by setting the FS_MGTIME flag in
  the fstype. Filesystems that don't set this flag will continue to use
  coarse-grained timestamps.

  Various preparatory changes, fixes and cleanups are included:

   - Fixup all relevant places where POSIX requires updating ctime
     together with mtime. This is a wide-range of places and all
     maintainers provided necessary Acks.

   - Add new accessors for inode->i_ctime directly and change all
     callers to rely on them. Plain accesses to inode->i_ctime are now
     gone and it is accordingly rename to inode->__i_ctime and commented
     as requiring accessors.

   - Extend generic_fillattr() to pass in a request mask mirroring in a
     sense the statx() uapi. This allows callers to pass in a request
     mask to only get a subset of attributes filled in.

   - Rework timestamp updates so it's possible to drop the @now
     parameter the update_time() inode operation and associated helpers.

   - Add inode_update_timestamps() and convert all filesystems to it
     removing a bunch of open-coding"

* tag 'v6.6-vfs.ctime' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: (107 commits)
  btrfs: convert to multigrain timestamps
  ext4: switch to multigrain timestamps
  xfs: switch to multigrain timestamps
  tmpfs: add support for multigrain timestamps
  fs: add infrastructure for multigrain timestamps
  fs: drop the timespec64 argument from update_time
  xfs: have xfs_vn_update_time gets its own timestamp
  fat: make fat_update_time get its own timestamp
  fat: remove i_version handling from fat_update_time
  ubifs: have ubifs_update_time use inode_update_timestamps
  btrfs: have it use inode_update_timestamps
  fs: drop the timespec64 arg from generic_update_time
  fs: pass the request_mask to generic_fillattr
  fs: remove silly warning from current_time
  gfs2: fix timestamp handling on quota inodes
  fs: rename i_ctime field to __i_ctime
  selinux: convert to ctime accessor functions
  security: convert to ctime accessor functions
  apparmor: convert to ctime accessor functions
  sunrpc: convert to ctime accessor functions
  ...
2023-08-28 09:31:32 -07:00
..
4xx powerpc updates for 6.4 2023-04-28 16:24:32 -07:00
8xx powerpc updates for 6.4 2023-04-28 16:24:32 -07:00
40x powerpc updates for 6.4 2023-04-28 16:24:32 -07:00
44x powerpc: Switch i2c drivers back to use .probe() 2023-06-14 12:46:41 +10:00
52xx powerpc: 52xx: Make immr_id DT match tables static 2023-06-21 15:13:56 +10:00
82xx powerpc: drop MPC8272-ADS and PowerQUICC II FADS shared code. 2023-04-20 13:21:48 +10:00
83xx powerpc: Switch i2c drivers back to use .probe() 2023-06-14 12:46:41 +10:00
85xx powerpc/64e: Fix secondary thread bringup for ELFv2 kernels 2023-08-01 21:01:27 +10:00
86xx powerpc: delete empty config entry for PPC_86xx 2023-05-15 23:25:56 +10:00
512x powerpc/512x: lpbfifo: Convert to platform remove callback returning void 2023-07-17 15:13:48 +10:00
amigaone powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
book3s driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
cell spufs: convert to ctime accessor functions 2023-07-10 10:08:17 +02:00
chrp powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
embedded6xx powerpc/embedded6xx: select MPC10X_BRIDGE only if PCI is set 2023-06-09 23:29:50 +10:00
maple powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
microwatt powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
pasemi powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
powermac powerpc/powermac: Use early_* IO variants in via_calibrate_decr() 2023-08-02 22:57:22 +10:00
powernv powerpc: powernv: Annotate data races in opal events 2023-06-21 15:13:57 +10:00
ps3 powerpc/platforms: Use 'compatible' property for simple cases 2023-03-15 00:52:10 +11:00
pseries powerpc/pseries/vas: Hold mmap_mutex after mmap lock during window close 2023-07-17 10:35:06 +10:00
fsl_uli1575.c powerpc/fsl_uli1575: Mark uli_exclude_device() as static 2023-04-20 10:20:50 +10:00
Kconfig powerpc/fsl_uli1575: fix kconfig warnings and build errors 2023-05-08 23:00:00 +10:00
Kconfig.cputype powerpc/64: vmlinux support building with PCREL addresing 2023-04-20 12:59:21 +10:00
Makefile powerpc: Add Microwatt platform 2021-06-21 21:15:26 +10:00