diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-08-19 11:25:00 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-08-20 12:12:58 +0300 |
| commit | d072148a8631f102de60ed5a3a827e85d09d24f0 (patch) | |
| tree | efd4078aa4c4a59f6e47fd1b28ed08f9f510d9f5 /include | |
| parent | b19a97d57c15643494ac8bfaaa35e3ee472d41da (diff) | |
| download | linux-d072148a8631f102de60ed5a3a827e85d09d24f0.tar.xz | |
fs: add a FMODE_ flag to indicate IOCB_HAS_METADATA availability
Currently the kernel will happily route io_uring requests with metadata
to file operations that don't support it. Add a FMODE_ flag to guard
that.
Fixes: 4de2ce04c862 ("fs: introduce IOCB_HAS_METADATA for metadata")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/20250819082517.2038819-2-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index d7ab4f96d705..601d036a6c78 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -149,7 +149,8 @@ typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, /* Expect random access pattern */ #define FMODE_RANDOM ((__force fmode_t)(1 << 12)) -/* FMODE_* bit 13 */ +/* Supports IOCB_HAS_METADATA */ +#define FMODE_HAS_METADATA ((__force fmode_t)(1 << 13)) /* File is opened with O_PATH; almost nothing can be done with it */ #define FMODE_PATH ((__force fmode_t)(1 << 14)) |
