Lines Matching refs:bio
1222 size_t size, struct bio *bio, in btrfs_merge_bio_hook() argument
1227 u64 logical = (u64)bio->bi_sector << 9; in btrfs_merge_bio_hook()
1235 length = bio->bi_size; in btrfs_merge_bio_hook()
1255 struct bio *bio, int mirror_num, in __btrfs_submit_bio_start() argument
1261 ret = btrfs_csum_one_bio(root, inode, bio, 0, 0); in __btrfs_submit_bio_start()
1274 static int __btrfs_submit_bio_done(struct inode *inode, int rw, struct bio *bio, in __btrfs_submit_bio_done() argument
1278 return btrfs_map_bio(root, rw, bio, mirror_num, 1); in __btrfs_submit_bio_done()
1285 static int btrfs_submit_bio_hook(struct inode *inode, int rw, struct bio *bio, in btrfs_submit_bio_hook() argument
1294 ret = btrfs_bio_wq_end_io(root->fs_info, bio, 0); in btrfs_submit_bio_hook()
1299 return btrfs_submit_compressed_read(inode, bio, in btrfs_submit_bio_hook()
1302 btrfs_lookup_bio_sums(root, inode, bio, NULL); in btrfs_submit_bio_hook()
1310 inode, rw, bio, mirror_num, in btrfs_submit_bio_hook()
1316 return btrfs_map_bio(root, rw, bio, mirror_num, 0); in btrfs_submit_bio_hook()
1588 static int btrfs_io_failed_hook(struct bio *failed_bio, in btrfs_io_failed_hook()
1598 struct bio *bio; in btrfs_io_failed_hook() local
1662 bio = bio_alloc(GFP_NOFS, 1); in btrfs_io_failed_hook()
1663 bio->bi_private = state; in btrfs_io_failed_hook()
1664 bio->bi_end_io = failed_bio->bi_end_io; in btrfs_io_failed_hook()
1665 bio->bi_sector = failrec->logical >> 9; in btrfs_io_failed_hook()
1666 bio->bi_bdev = failed_bio->bi_bdev; in btrfs_io_failed_hook()
1667 bio->bi_size = 0; in btrfs_io_failed_hook()
1669 bio_add_page(bio, page, failrec->len, start - page_offset(page)); in btrfs_io_failed_hook()
1675 BTRFS_I(inode)->io_tree.ops->submit_bio_hook(inode, rw, bio, in btrfs_io_failed_hook()