iomap: error out on file IO when there is no inline_data buffer

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>
This commit is contained in:
Darrick J. Wong 2025-09-16 08:00:45 -07:00 • committed by Christian Brauner
commit 6a96fb653b
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
2 changed files with 13 additions and 5 deletions