diff options
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -961,7 +961,7 @@ static int __bio_copy_iov(struct bio *bio, struct bio_vec *iovecs, | |||
961 | int iov_idx = 0; | 961 | int iov_idx = 0; |
962 | unsigned int iov_off = 0; | 962 | unsigned int iov_off = 0; |
963 | 963 | ||
964 | __bio_for_each_segment(bvec, bio, i, 0) { | 964 | bio_for_each_segment_all(bvec, bio, i) { |
965 | char *bv_addr = page_address(bvec->bv_page); | 965 | char *bv_addr = page_address(bvec->bv_page); |
966 | unsigned int bv_len = iovecs[i].bv_len; | 966 | unsigned int bv_len = iovecs[i].bv_len; |
967 | 967 | ||
@@ -1143,7 +1143,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q, | |||
1143 | return bio; | 1143 | return bio; |
1144 | cleanup: | 1144 | cleanup: |
1145 | if (!map_data) | 1145 | if (!map_data) |
1146 | bio_for_each_segment(bvec, bio, i) | 1146 | bio_for_each_segment_all(bvec, bio, i) |
1147 | __free_page(bvec->bv_page); | 1147 | __free_page(bvec->bv_page); |
1148 | 1148 | ||
1149 | bio_put(bio); | 1149 | bio_put(bio); |
@@ -1357,7 +1357,7 @@ static void __bio_unmap_user(struct bio *bio) | |||
1357 | /* | 1357 | /* |
1358 | * make sure we dirty pages we wrote to | 1358 | * make sure we dirty pages we wrote to |
1359 | */ | 1359 | */ |
1360 | __bio_for_each_segment(bvec, bio, i, 0) { | 1360 | bio_for_each_segment_all(bvec, bio, i) { |
1361 | if (bio_data_dir(bio) == READ) | 1361 | if (bio_data_dir(bio) == READ) |
1362 | set_page_dirty_lock(bvec->bv_page); | 1362 | set_page_dirty_lock(bvec->bv_page); |
1363 | 1363 | ||
@@ -1463,7 +1463,7 @@ static void bio_copy_kern_endio(struct bio *bio, int err) | |||
1463 | int i; | 1463 | int i; |
1464 | char *p = bmd->sgvecs[0].iov_base; | 1464 | char *p = bmd->sgvecs[0].iov_base; |
1465 | 1465 | ||
1466 | __bio_for_each_segment(bvec, bio, i, 0) { | 1466 | bio_for_each_segment_all(bvec, bio, i) { |
1467 | char *addr = page_address(bvec->bv_page); | 1467 | char *addr = page_address(bvec->bv_page); |
1468 | int len = bmd->iovecs[i].bv_len; | 1468 | int len = bmd->iovecs[i].bv_len; |
1469 | 1469 | ||
@@ -1503,7 +1503,7 @@ struct bio *bio_copy_kern(struct request_queue *q, void *data, unsigned int len, | |||
1503 | if (!reading) { | 1503 | if (!reading) { |
1504 | void *p = data; | 1504 | void *p = data; |
1505 | 1505 | ||
1506 | bio_for_each_segment(bvec, bio, i) { | 1506 | bio_for_each_segment_all(bvec, bio, i) { |
1507 | char *addr = page_address(bvec->bv_page); | 1507 | char *addr = page_address(bvec->bv_page); |
1508 | 1508 | ||
1509 | memcpy(addr, p, bvec->bv_len); | 1509 | memcpy(addr, p, bvec->bv_len); |
@@ -1789,7 +1789,7 @@ sector_t bio_sector_offset(struct bio *bio, unsigned short index, | |||
1789 | if (index >= bio->bi_idx) | 1789 | if (index >= bio->bi_idx) |
1790 | index = bio->bi_vcnt - 1; | 1790 | index = bio->bi_vcnt - 1; |
1791 | 1791 | ||
1792 | __bio_for_each_segment(bv, bio, i, 0) { | 1792 | bio_for_each_segment_all(bv, bio, i) { |
1793 | if (i == index) { | 1793 | if (i == index) { |
1794 | if (offset > bv->bv_offset) | 1794 | if (offset > bv->bv_offset) |
1795 | sectors += (offset - bv->bv_offset) / sector_sz; | 1795 | sectors += (offset - bv->bv_offset) / sector_sz; |