[PATCH] md: Fix bug that stops raid5 resync from happening
authorNeilBrown <neilb@suse.de>
Mon, 26 Jun 2006 07:27:55 +0000 (00:27 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:39 +0000 (09:58 -0700)
commit3285edf152cefff482f95ceb90b1bd46ac169df1
tree88dd6e57f6405d71c621f136d236e1dde599e5a7
parentb3cc9ec76ba44d010f4c820c4608b91aaf28a0b9
[PATCH] md: Fix bug that stops raid5 resync from happening

As data_disks is *less* than raid_disks, the current test here is obviously
wrong.  And as the difference is already available in conf->max_degraded, it
makes much more sense to use that.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid5.c