Message ID | 20230531075410.480499-9-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/17] btrfs: fix file_offset for REQ_BTRFS_ONE_ORDERED bios that get split | expand |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index e3f74c90280767..ba8a61fa3d81fc 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -7827,7 +7827,8 @@ static void btrfs_dio_submit_io(const struct iomap_iter *iter, struct bio *bio, ret = btrfs_extract_ordered_extent(bbio, dio_data->ordered); if (ret) { - btrfs_bio_end_io(bbio, errno_to_blk_status(ret)); + bbio->bio.bi_status = errno_to_blk_status(ret); + btrfs_dio_end_io(bbio); return; } }