diff options
| author | Christian Brauner <brauner@kernel.org> | 2024-08-28 17:54:05 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2024-08-28 17:54:05 +0300 |
| commit | 7fbabbb4ae2a7203861e4db363e3c861a4df260e (patch) | |
| tree | 4239ed2c4f7f0933e6d9f3a7fc0c86481a8c56a0 /include/uapi/linux | |
| parent | 47ac09b91befbb6a235ab620c32af719f8208399 (diff) | |
| parent | 4acaddf5d1e78814d26df3ff02d5e410d951ff32 (diff) | |
| download | linux-7fbabbb4ae2a7203861e4db363e3c861a4df260e.tar.xz | |
Merge patch series "Subject: sort out the fallocate mode mess"
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>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/falloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/falloc.h b/include/uapi/linux/falloc.h index 51398fa57f6c..5810371ed72b 100644 --- a/include/uapi/linux/falloc.h +++ b/include/uapi/linux/falloc.h @@ -2,6 +2,7 @@ #ifndef _UAPI_FALLOC_H_ #define _UAPI_FALLOC_H_ +#define FALLOC_FL_ALLOCATE_RANGE 0x00 /* allocate range */ #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */ #define FALLOC_FL_NO_HIDE_STALE 0x04 /* reserved codepoint */ |
