Lines Matching refs:comp_bio

554 	struct bio *comp_bio;  in btrfs_submit_compressed_read()  local
623 comp_bio = btrfs_bio_alloc(bdev, cur_disk_byte); in btrfs_submit_compressed_read()
624 comp_bio->bi_opf = REQ_OP_READ; in btrfs_submit_compressed_read()
625 comp_bio->bi_private = cb; in btrfs_submit_compressed_read()
626 comp_bio->bi_end_io = end_compressed_bio_read; in btrfs_submit_compressed_read()
636 if (comp_bio->bi_iter.bi_size) in btrfs_submit_compressed_read()
638 comp_bio, 0); in btrfs_submit_compressed_read()
641 if (submit || bio_add_page(comp_bio, page, PAGE_SIZE, 0) < in btrfs_submit_compressed_read()
643 ret = btrfs_bio_wq_end_io(fs_info, comp_bio, in btrfs_submit_compressed_read()
656 ret = btrfs_lookup_bio_sums(inode, comp_bio, in btrfs_submit_compressed_read()
660 sums += DIV_ROUND_UP(comp_bio->bi_iter.bi_size, in btrfs_submit_compressed_read()
663 ret = btrfs_map_bio(fs_info, comp_bio, mirror_num, 0); in btrfs_submit_compressed_read()
665 comp_bio->bi_status = ret; in btrfs_submit_compressed_read()
666 bio_endio(comp_bio); in btrfs_submit_compressed_read()
669 comp_bio = btrfs_bio_alloc(bdev, cur_disk_byte); in btrfs_submit_compressed_read()
670 comp_bio->bi_opf = REQ_OP_READ; in btrfs_submit_compressed_read()
671 comp_bio->bi_private = cb; in btrfs_submit_compressed_read()
672 comp_bio->bi_end_io = end_compressed_bio_read; in btrfs_submit_compressed_read()
674 bio_add_page(comp_bio, page, PAGE_SIZE, 0); in btrfs_submit_compressed_read()
679 ret = btrfs_bio_wq_end_io(fs_info, comp_bio, BTRFS_WQ_ENDIO_DATA); in btrfs_submit_compressed_read()
683 ret = btrfs_lookup_bio_sums(inode, comp_bio, sums); in btrfs_submit_compressed_read()
687 ret = btrfs_map_bio(fs_info, comp_bio, mirror_num, 0); in btrfs_submit_compressed_read()
689 comp_bio->bi_status = ret; in btrfs_submit_compressed_read()
690 bio_endio(comp_bio); in btrfs_submit_compressed_read()