diff options
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -473,13 +473,13 @@ EXPORT_SYMBOL(bio_alloc_bioset); | |||
473 | void zero_fill_bio(struct bio *bio) | 473 | void zero_fill_bio(struct bio *bio) |
474 | { | 474 | { |
475 | unsigned long flags; | 475 | unsigned long flags; |
476 | struct bio_vec *bv; | 476 | struct bio_vec bv; |
477 | int i; | 477 | struct bvec_iter iter; |
478 | 478 | ||
479 | bio_for_each_segment(bv, bio, i) { | 479 | bio_for_each_segment(bv, bio, iter) { |
480 | char *data = bvec_kmap_irq(bv, &flags); | 480 | char *data = bvec_kmap_irq(&bv, &flags); |
481 | memset(data, 0, bv->bv_len); | 481 | memset(data, 0, bv.bv_len); |
482 | flush_dcache_page(bv->bv_page); | 482 | flush_dcache_page(bv.bv_page); |
483 | bvec_kunmap_irq(data, &flags); | 483 | bvec_kunmap_irq(data, &flags); |
484 | } | 484 | } |
485 | } | 485 | } |
@@ -1687,11 +1687,11 @@ void bio_check_pages_dirty(struct bio *bio) | |||
1687 | #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE | 1687 | #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE |
1688 | void bio_flush_dcache_pages(struct bio *bi) | 1688 | void bio_flush_dcache_pages(struct bio *bi) |
1689 | { | 1689 | { |
1690 | int i; | 1690 | struct bio_vec bvec; |
1691 | struct bio_vec *bvec; | 1691 | struct bvec_iter iter; |
1692 | 1692 | ||
1693 | bio_for_each_segment(bvec, bi, i) | 1693 | bio_for_each_segment(bvec, bi, iter) |
1694 | flush_dcache_page(bvec->bv_page); | 1694 | flush_dcache_page(bvec.bv_page); |
1695 | } | 1695 | } |
1696 | EXPORT_SYMBOL(bio_flush_dcache_pages); | 1696 | EXPORT_SYMBOL(bio_flush_dcache_pages); |
1697 | #endif | 1697 | #endif |
@@ -1840,7 +1840,7 @@ void bio_trim(struct bio *bio, int offset, int size) | |||
1840 | bio->bi_iter.bi_idx = 0; | 1840 | bio->bi_iter.bi_idx = 0; |
1841 | } | 1841 | } |
1842 | /* Make sure vcnt and last bv are not too big */ | 1842 | /* Make sure vcnt and last bv are not too big */ |
1843 | bio_for_each_segment(bvec, bio, i) { | 1843 | bio_for_each_segment_all(bvec, bio, i) { |
1844 | if (sofar + bvec->bv_len > size) | 1844 | if (sofar + bvec->bv_len > size) |
1845 | bvec->bv_len = size - sofar; | 1845 | bvec->bv_len = size - sofar; |
1846 | if (bvec->bv_len == 0) { | 1846 | if (bvec->bv_len == 0) { |