Skip to content

Commit 9cd0ed6

Browse files
committed
iomap: enhance writeback error message
If we encounter an IO error during writeback, log the inode, offset, and sector number of the failure, instead of forcing the user to do some sort of reverse mapping to figure out which file is affected. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent 48d64cd commit 9cd0ed6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/iomap/buffered-io.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,9 @@ iomap_finish_ioend(struct iomap_ioend *ioend, int error)
11621162

11631163
if (unlikely(error && !quiet)) {
11641164
printk_ratelimited(KERN_ERR
1165-
"%s: writeback error on sector %llu",
1166-
inode->i_sb->s_id, start);
1165+
"%s: writeback error on inode %lu, offset %lld, sector %llu",
1166+
inode->i_sb->s_id, inode->i_ino, ioend->io_offset,
1167+
start);
11671168
}
11681169
}
11691170

0 commit comments

Comments
 (0)