|
@@ -2734,7 +2734,7 @@ static int _drbd_send_bio(struct drbd_conf *mdev, struct bio *bio)
|
|
|
struct bio_vec *bvec;
|
|
|
int i;
|
|
|
/* hint all but last page with MSG_MORE */
|
|
|
- __bio_for_each_segment(bvec, bio, i, 0) {
|
|
|
+ bio_for_each_segment(bvec, bio, i) {
|
|
|
if (!_drbd_no_send_page(mdev, bvec->bv_page,
|
|
|
bvec->bv_offset, bvec->bv_len,
|
|
|
i == bio->bi_vcnt -1 ? 0 : MSG_MORE))
|
|
@@ -2748,7 +2748,7 @@ static int _drbd_send_zc_bio(struct drbd_conf *mdev, struct bio *bio)
|
|
|
struct bio_vec *bvec;
|
|
|
int i;
|
|
|
/* hint all but last page with MSG_MORE */
|
|
|
- __bio_for_each_segment(bvec, bio, i, 0) {
|
|
|
+ bio_for_each_segment(bvec, bio, i) {
|
|
|
if (!_drbd_send_page(mdev, bvec->bv_page,
|
|
|
bvec->bv_offset, bvec->bv_len,
|
|
|
i == bio->bi_vcnt -1 ? 0 : MSG_MORE))
|