'bio_index' is just a index, it's really not necessary to do increment one by one.
Unified · Split
| @@ -281,10 +281,10 @@ static int __btrfs_lookup_bio_sums(struct btrfs_root *root, · 280 unmodified lines | |||
| 281 | found: | 281 | found: |
| 282 | csum += count * csum_size; | 282 | csum += count * csum_size; |
| 283 | nblocks -= count; | 283 | nblocks -= count; |
| 284 | bio_index += count; | ||
| 284 | while (count--) { | 285 | while (count--) { |
| 285 | disk_bytenr += bvec->bv_len; | 286 | disk_bytenr += bvec->bv_len; |
| 286 | offset += bvec->bv_len; | 287 | offset += bvec->bv_len; |
| 287 | bio_index++; | ||
| 288 | bvec++; | 288 | bvec++; |
| 289 | } | 289 | } |
| 290 | } | 290 | } |