History

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.

Liu Bo committed 12 years ago

Commit d2cbf2a1 parent a1a50f61 file · +1 −1Browse files

Unified · Split

fs/btrfs/file-item.c+1−1
@@ -281,10 +281,10 @@ static int __btrfs_lookup_bio_sums(struct btrfs_root *root, · 280 unmodified lines
281281 found:
282282 csum += count * csum_size;
283283 nblocks -= count;
284+ bio_index += count;
284285 while (count--) {
285286 disk_bytenr += bvec->bv_len;
286287 offset += bvec->bv_len;
287− bio_index++;
288288 bvec++;
289289 }
290290 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t