md: fix some bugs with growing raid5/raid6 arrays.
authorNeilBrown <neilb@suse.de>
Tue, 11 Sep 2007 22:23:36 +0000 (15:23 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 12 Sep 2007 00:21:19 +0000 (17:21 -0700)
commita2e0855182e2be26b252745b2bb7558705cb0dd2
treed7a1457b1785cff5c018b37587ce2dbef159e83d
parentb70ae1d9f69ba52767af89f90fd79587669bc7ff
md: fix some bugs with growing raid5/raid6 arrays.

The recent changed to raid5 to allow offload of parity calculation etc
introduced some bugs in the code for growing (i.e.  adding a disk to) raid5
and raid6.  This fixes them

Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/raid5.c