]> www.infradead.org Git - users/hch/misc.git/commit
fs: add a FMODE_ flag to indicate IOCB_HAS_METADATA availability
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Aug 2025 04:23:12 +0000 (06:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Sep 2025 06:40:58 +0000 (08:40 +0200)
commit33a05a40a90b65a93844a5850184ec7060db8c1e
treee84424eb346036a5a51e6ea6478954c65ec4f771
parentc95ca432c559746af2dc95bd42e54aed38b07d61
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>
block/fops.c
include/linux/fs.h
io_uring/rw.c