Lines Matching refs:comp_bio

566 	struct bio *comp_bio;  in btrfs_submit_compressed_read()  local
630 comp_bio = compressed_bio_alloc(bdev, cur_disk_byte, GFP_NOFS); in btrfs_submit_compressed_read()
631 if (!comp_bio) in btrfs_submit_compressed_read()
633 comp_bio->bi_private = cb; in btrfs_submit_compressed_read()
634 comp_bio->bi_end_io = end_compressed_bio_read; in btrfs_submit_compressed_read()
642 if (comp_bio->bi_size) in btrfs_submit_compressed_read()
645 comp_bio, 0); in btrfs_submit_compressed_read()
650 if (ret || bio_add_page(comp_bio, page, PAGE_CACHE_SIZE, 0) < in btrfs_submit_compressed_read()
652 bio_get(comp_bio); in btrfs_submit_compressed_read()
654 ret = btrfs_bio_wq_end_io(root->fs_info, comp_bio, 0); in btrfs_submit_compressed_read()
667 comp_bio, sums); in btrfs_submit_compressed_read()
670 sums += (comp_bio->bi_size + root->sectorsize - 1) / in btrfs_submit_compressed_read()
673 ret = btrfs_map_bio(root, READ, comp_bio, in btrfs_submit_compressed_read()
677 bio_put(comp_bio); in btrfs_submit_compressed_read()
679 comp_bio = compressed_bio_alloc(bdev, cur_disk_byte, in btrfs_submit_compressed_read()
681 comp_bio->bi_private = cb; in btrfs_submit_compressed_read()
682 comp_bio->bi_end_io = end_compressed_bio_read; in btrfs_submit_compressed_read()
684 bio_add_page(comp_bio, page, PAGE_CACHE_SIZE, 0); in btrfs_submit_compressed_read()
688 bio_get(comp_bio); in btrfs_submit_compressed_read()
690 ret = btrfs_bio_wq_end_io(root->fs_info, comp_bio, 0); in btrfs_submit_compressed_read()
694 ret = btrfs_lookup_bio_sums(root, inode, comp_bio, sums); in btrfs_submit_compressed_read()
698 ret = btrfs_map_bio(root, READ, comp_bio, mirror_num, 0); in btrfs_submit_compressed_read()
701 bio_put(comp_bio); in btrfs_submit_compressed_read()