]> git.dujemihanovic.xyz Git - linux.git/commitdiff
Merge patch series "Subject: sort out the fallocate mode mess"
authorChristian Brauner <brauner@kernel.org>
Wed, 28 Aug 2024 14:54:05 +0000 (16:54 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 28 Aug 2024 14:54:05 +0000 (16:54 +0200)
Christoph Hellwig <hch@lst.de> says:

I've recently been looking at the XFS fallocate implementation and got
upset about the messing parsing of the mode argument, which mixes modes
and an optional flag in a really confusing way.

This series tries to clean this up by better defining what is the
operation mode and what is an optional flag, so that both the core
code and file systems can use switch statements to switch on the mode.

* patches from https://lore.kernel.org/r/20240827065123.1762168-1-hch@lst.de:
  xfs: refactor xfs_file_fallocate
  xfs: move the xfs_is_always_cow_inode check into xfs_alloc_file_space
  xfs: call xfs_flush_unmap_range from xfs_free_file_space
  fs: sort out the fallocate mode vs flag mess
  ext4: remove tracing for FALLOC_FL_NO_HIDE_STALE
  block: remove checks for FALLOC_FL_NO_HIDE_STALE

Link: https://lore.kernel.org/r/20240827065123.1762168-1-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>

Trivial merge