]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iomap: don't report direct-io retries to fserror
authorDarrick J. Wong <djwong@kernel.org>
Tue, 24 Feb 2026 15:46:37 +0000 (07:46 -0800)
committerChristian Brauner <brauner@kernel.org>
Thu, 26 Feb 2026 08:23:22 +0000 (09:23 +0100)
commitcd3c877d04683b44a4d50dcdfad54b356e65d158
tree60ba1e74ae5a75e65652967ab997a43921d0978d
parentd9d32e5bd5a4e57675f2b70ddf73c3dc5cf44fc2
iomap: don't report direct-io retries to fserror

iomap's directio implementation has two magic errno codes that it uses
to signal callers -- ENOTBLK tells the filesystem that it should retry
a write with the pagecache; and EAGAIN tells the caller that pagecache
flushing or invalidation failed and that it should try again.

Neither of these indicate data loss, so let's not report them.

Fixes: a9d573ee88af98 ("iomap: report file I/O errors to the VFS")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://patch.msgid.link/20260224154637.GD2390381@frogsfrogsfrogs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/direct-io.c