fs: add a FMODE_ flag to indicate IOCB_HAS_METADATA availability
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Aug 2025 08:25:00 +0000 (10:25 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 20 Aug 2025 09:12:58 +0000 (11:12 +0200)
commitd072148a8631f102de60ed5a3a827e85d09d24f0
treeefd4078aa4c4a59f6e47fd1b28ed08f9f510d9f5
parentb19a97d57c15643494ac8bfaaa35e3ee472d41da
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>
block/fops.c
include/linux/fs.h
io_uring/rw.c