We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1130645 commit 47b378fCopy full SHA for 47b378f
fs/ext4/page-io.c
@@ -63,15 +63,15 @@ static void buffer_io_error(struct buffer_head *bh)
63
64
static void ext4_finish_bio(struct bio *bio)
65
{
66
- int i;
67
int error = !test_bit(BIO_UPTODATE, &bio->bi_flags);
68
- struct bio_vec *bvec;
+ struct bio_vec bvec;
+ struct bvec_iter iter;
69
70
- bio_for_each_segment_all(bvec, bio, i) {
71
- struct page *page = bvec->bv_page;
+ bio_for_each_page_all(bvec, bio, iter) {
+ struct page *page = bvec.bv_page;
72
struct buffer_head *bh, *head;
73
- unsigned bio_start = bvec->bv_offset;
74
- unsigned bio_end = bio_start + bvec->bv_len;
+ unsigned bio_start = bvec.bv_offset;
+ unsigned bio_end = bio_start + bvec.bv_len;
75
unsigned under_io = 0;
76
unsigned long flags;
77
0 commit comments