From: Liu Bo Date: Tue, 29 Apr 2014 05:07:58 +0000 (+0800) Subject: Btrfs: do not increment on bio_index one by one X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2cbf2a260ab18c833f07fda66e30c4d4344162e;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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: Liu Bo Reviewed-by: David Sterba Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 127555b29f58..67751b776c7b 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -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++; } }