diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/page-io.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 54f566d97176..b46a675e7704 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -241,13 +241,14 @@ static void ext4_end_bio(struct bio *bio, int error) if (error) { io_end->flag |= EXT4_IO_END_ERROR; - ext4_warning(inode->i_sb, "I/O error writing to inode %lu " + ext4_warning(inode->i_sb, "I/O error %d writing to inode %lu " "(offset %llu size %ld starting block %llu)", - inode->i_ino, + error, inode->i_ino, (unsigned long long) io_end->offset, (long) io_end->size, (unsigned long long) bi_sector >> (inode->i_blkbits - 9)); + mapping_set_error(inode->i_mapping, error); } if (!(io_end->flag & EXT4_IO_END_UNWRITTEN)) { |