Skip to content

Commit

Permalink
Merge tag 'md-3.4-fixes' of git://neil.brown.name/md
Browse files Browse the repository at this point in the history
Pull one more md bugfix from NeilBrown:
 "Fix bug in recent fix to RAID10.

  Without this patch, recovery will crash"

* tag 'md-3.4-fixes' of git://neil.brown.name/md:
  md/raid10: fix transcription error in calc_sectors conversion.
  • Loading branch information
Linus Torvalds committed May 18, 2012
2 parents 8394edf + b0d634d commit 2f05af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -3189,7 +3189,7 @@ static void calc_sectors(struct r10conf *conf, sector_t size)
if (conf->far_offset)
conf->stride = 1 << conf->chunk_shift;
else {
sector_div(size, conf->near_copies);
sector_div(size, conf->far_copies);
conf->stride = size << conf->chunk_shift;
}
}
Expand Down

0 comments on commit 2f05af8

Please sign in to comment.