linux/fs/iomap
Darrick J. Wong 9f0f659ea9 iomap: error out on file IO when there is no inline_data buffer
[ Upstream commit 6a96fb653b ]

Return IO errors if an ->iomap_begin implementation returns an
IOMAP_INLINE buffer but forgets to set the inline_data pointer.
Filesystems should never do this, but we could help fs developers (me)
fix their bugs by handling this more gracefully than crashing the
kernel.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/175803480324.966383.7414345025943296442.stgit@frogsfrogsfrogs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-19 16:37:44 +02:00
..
buffered-io.c iomap: error out on file IO when there is no inline_data buffer 2025-10-19 16:37:44 +02:00
direct-io.c iomap: error out on file IO when there is no inline_data buffer 2025-10-19 16:37:44 +02:00
fiemap.c iomap: header diet 2025-07-14 10:51:31 +02:00
internal.h iomap: move all ioend handling to ioend.c 2025-07-14 10:51:32 +02:00
ioend.c iomap: move all ioend handling to ioend.c 2025-07-14 10:51:32 +02:00
iter.c iomap: header diet 2025-07-14 10:51:31 +02:00
Makefile iomap: build the writeback code without CONFIG_BLOCK 2025-07-14 10:51:33 +02:00
seek.c iomap: header diet 2025-07-14 10:51:31 +02:00
swapfile.c iomap: header diet 2025-07-14 10:51:31 +02:00
trace.c iomap: header diet 2025-07-14 10:51:31 +02:00
trace.h iomap: rename iomap_writepage_map to iomap_writeback_folio 2025-07-14 10:51:32 +02:00