Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2cbf2a2 authored by Liu Bo's avatar Liu Bo Committed by Chris Mason
Browse files

Btrfs: do not increment on bio_index one by one



'bio_index' is just a index, it's really not necessary to do increment
one by one.

Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent a1a50f60
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -281,10 +281,10 @@ static int __btrfs_lookup_bio_sums(struct btrfs_root *root,
found:
		csum += count * csum_size;
		nblocks -= count;
		bio_index += count;
		while (count--) {
			disk_bytenr += bvec->bv_len;
			offset += bvec->bv_len;
			bio_index++;
			bvec++;
		}
	}