Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30375
b: refs/heads/master
c: 8838832
h: refs/heads/master
i:
  30373: 9f9a600
  30371: 07c9893
  30367: d5aaf83
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Jun 26, 2006
1 parent b393045 commit 0c5f205
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: ce25c31bdd3b39266debd86a7732007e05983a67
refs/heads/master: 8838832830d2c6c28ae2db93188ae90652eb7fc2
8 changes: 7 additions & 1 deletion trunk/drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,13 @@ static int run(mddev_t *mddev)
/*
* Ok, everything is just fine now
*/
size = conf->stride * conf->raid_disks;
if (conf->far_offset) {
size = mddev->size >> (conf->chunk_shift-1);
size *= conf->raid_disks;
size <<= conf->chunk_shift;
sector_div(size, conf->far_copies);
} else
size = conf->stride * conf->raid_disks;
sector_div(size, conf->near_copies);
mddev->array_size = size/2;
mddev->resync_max_sectors = size;
Expand Down

0 comments on commit 0c5f205

Please sign in to comment.