Lines Matching defs:bio
141 struct bio *bio_alloc_drbd(gfp_t gfp_mask)
143 struct bio *bio;
148 bio = bio_alloc_bioset(gfp_mask, 1, &drbd_md_io_bio_set);
149 if (!bio)
151 return bio;
1595 static int _drbd_send_bio(struct drbd_peer_device *peer_device, struct bio *bio)
1601 bio_for_each_segment(bvec, bio, iter) {
1611 if (bio_op(bio) == REQ_OP_WRITE_SAME)
1617 static int _drbd_send_zc_bio(struct drbd_peer_device *peer_device, struct bio *bio)
1623 bio_for_each_segment(bvec, bio, iter) {
1632 if (bio_op(bio) == REQ_OP_WRITE_SAME)
1659 struct bio *bio)
1662 return (bio->bi_opf & REQ_SYNC ? DP_RW_SYNC : 0) |
1663 (bio->bi_opf & REQ_FUA ? DP_FUA : 0) |
1664 (bio->bi_opf & REQ_PREFLUSH ? DP_FLUSH : 0) |
1665 (bio_op(bio) == REQ_OP_WRITE_SAME ? DP_WSAME : 0) |
1666 (bio_op(bio) == REQ_OP_DISCARD ? DP_DISCARD : 0) |
1667 (bio_op(bio) == REQ_OP_WRITE_ZEROES ?
1669 (DP_ZEROES |(!(bio->bi_opf & REQ_NOUNMAP) ? DP_DISCARD : 0))
1673 return bio->bi_opf & REQ_SYNC ? DP_RW_SYNC : 0;
1752 * sure that even if the bio pages may still be modified, it
2272 /* One global retry thread, if we need to push back some bio and have it
2295 struct bio *bio = req->master_bio;
2331 __drbd_make_request(device, bio, start_jif);