diff options
| -rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 600bf0d9ceaf..e0ad8b2c2a36 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
| @@ -7985,6 +7985,7 @@ static void btrfs_endio_direct_read(struct bio *bio) | |||
| 7985 | 7985 | ||
| 7986 | kfree(dip); | 7986 | kfree(dip); |
| 7987 | 7987 | ||
| 7988 | dio_bio->bi_error = bio->bi_error; | ||
| 7988 | dio_end_io(dio_bio, bio->bi_error); | 7989 | dio_end_io(dio_bio, bio->bi_error); |
| 7989 | 7990 | ||
| 7990 | if (io_bio->end_io) | 7991 | if (io_bio->end_io) |
| @@ -8039,6 +8040,7 @@ static void btrfs_endio_direct_write(struct bio *bio) | |||
| 8039 | 8040 | ||
| 8040 | kfree(dip); | 8041 | kfree(dip); |
| 8041 | 8042 | ||
| 8043 | dio_bio->bi_error = bio->bi_error; | ||
| 8042 | dio_end_io(dio_bio, bio->bi_error); | 8044 | dio_end_io(dio_bio, bio->bi_error); |
| 8043 | bio_put(bio); | 8045 | bio_put(bio); |
| 8044 | } | 8046 | } |
