md: fix two raid10 bugs
authorNeilBrown <neilb@suse.de>
Sat, 16 Jun 2007 17:16:06 +0000 (10:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 16 Jun 2007 20:16:15 +0000 (13:16 -0700)
commitaf03b8e4e81c3789e597632268940edd11ffe870
treebf161f88b6d9dbdd484366b9640b500617db5ab3
parentedad01e2a1c527af3baf22dc6977aeb058881150
md: fix two raid10 bugs

1/ When resyncing a degraded raid10 which has more than 2 copies of each block,
  garbage can get synced on top of good data.

2/ We round the wrong way in part of the device size calculation, which
  can cause confusion.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/raid10.c