mirror of
https://github.com/torvalds/linux.git
synced 2026-09-28 03:52:02 +02:00
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: a9d573ee88 ("iomap: report file I/O errors to the VFS")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260610050642.1906695-1-hch@lst.de
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
parent
c5d6cac286
commit
de654d66ff
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user