Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360737
b: refs/heads/master
c: 4c0ca26
h: refs/heads/master
i:
  360735: c866daf
v: v3
  • Loading branch information
Jonathan Brassow authored and NeilBrown committed Feb 26, 2013
1 parent aa84a26 commit 4cfccda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8dc9c654794a765ca61baed07f84ed8aaa7ca8c
refs/heads/master: 4c0ca26bd260dddf3b9781758cb5e2df3f74d4a3
5 changes: 2 additions & 3 deletions trunk/drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,14 +552,13 @@ static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio)
for (n = 0; n < geo->near_copies; n++) {
int d = dev;
sector_t s = sector;
r10bio->devs[slot].addr = sector;
r10bio->devs[slot].devnum = d;
r10bio->devs[slot].addr = s;
slot++;

for (f = 1; f < geo->far_copies; f++) {
d += geo->near_copies;
if (d >= geo->raid_disks)
d -= geo->raid_disks;
d %= geo->raid_disks;
s += geo->stride;
r10bio->devs[slot].devnum = d;
r10bio->devs[slot].addr = s;
Expand Down

0 comments on commit 4cfccda

Please sign in to comment.