From: Christoph Hellwig Date: Wed, 10 Jun 2026 05:06:42 +0000 (+0200) Subject: iomap: pass the correct len to fserror_report_io in __iomap_write_begin X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=de654d66ff30e75d9308fd4d4f1627addef7923e;p=thirdparty%2Flinux.git iomap: pass the correct len to fserror_report_io in __iomap_write_begin len is size of the (larger) write request, plen is the range for which the read failed here. Fixes: a9d573ee88af ("iomap: report file I/O errors to the VFS") Signed-off-by: Christoph Hellwig Link: https://patch.msgid.link/20260610050642.1906695-1-hch@lst.de Reviewed-by: "Darrick J. Wong" Signed-off-by: Christian Brauner (Amutable) --- diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index d7b648421a70..bcf4559e9aa7 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -850,7 +850,7 @@ static int __iomap_write_begin(const struct iomap_iter *iter, if (status < 0) fserror_report_io(iter->inode, FSERR_BUFFERED_READ, pos, - len, status, GFP_NOFS); + plen, status, GFP_NOFS); if (status) return status; }