@@ -2838,6 +2838,7 @@ static int submit_extent_page(int rw, struct extent_io_tree *tree,
bio_add_page(bio, page, page_size, offset);
bio->bi_end_io = end_io_func;
bio->bi_private = tree;
+ bio_set_streamid(bio, inode_streamid(page->mapping->host));
if (bio_ret)
*bio_ret = bio;
@@ -8180,6 +8180,7 @@ static void btrfs_submit_direct(int rw, struct bio *dio_bio,
atomic_set(&dip->pending_bios, 0);
btrfs_bio = btrfs_io_bio(io_bio);
btrfs_bio->logical = file_offset;
+ bio_set_streamid(io_bio, inode_streamid(inode));
if (write) {
io_bio->bi_end_io = btrfs_endio_direct_write;