diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bio.c | 12 | ||||
-rw-r--r-- | fs/exofs/ore.c | 2 | ||||
-rw-r--r-- | fs/exofs/ore_raid.c | 2 |
3 files changed, 8 insertions, 8 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; |
diff --git a/fs/exofs/ore.c b/fs/exofs/ore.c index f936cb50dc0d..b74422888604 100644 --- a/fs/exofs/ore.c +++ b/fs/exofs/ore.c | |||
@@ -401,7 +401,7 @@ static void _clear_bio(struct bio *bio) | |||
401 | struct bio_vec *bv; | 401 | struct bio_vec *bv; |
402 | unsigned i; | 402 | unsigned i; |
403 | 403 | ||
404 | __bio_for_each_segment(bv, bio, i, 0) { | 404 | bio_for_each_segment_all(bv, bio, i) { |
405 | unsigned this_count = bv->bv_len; | 405 | unsigned this_count = bv->bv_len; |
406 | 406 | ||
407 | if (likely(PAGE_SIZE == this_count)) | 407 | if (likely(PAGE_SIZE == this_count)) |
diff --git a/fs/exofs/ore_raid.c b/fs/exofs/ore_raid.c index b963f38ac298..7682b970d0f1 100644 --- a/fs/exofs/ore_raid.c +++ b/fs/exofs/ore_raid.c | |||
@@ -432,7 +432,7 @@ static void _mark_read4write_pages_uptodate(struct ore_io_state *ios, int ret) | |||
432 | if (!bio) | 432 | if (!bio) |
433 | continue; | 433 | continue; |
434 | 434 | ||
435 | __bio_for_each_segment(bv, bio, i, 0) { | 435 | bio_for_each_segment_all(bv, bio, i) { |
436 | struct page *page = bv->bv_page; | 436 | struct page *page = bv->bv_page; |
437 | 437 | ||
438 | SetPageUptodate(page); | 438 | SetPageUptodate(page); |