]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid1: Replace use of mddev->raid_disks with conf->raid_disks.
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:11 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:11 +0000 (11:32 +1100)
commitffbc191d8577db04ab3658ddc45975f33f34cc72
tree79126d7cb90253d847435bc5842597347a230bcc
parent4b940601c356afb399a3c8656e5cc90ab2a0d530
md/raid1:  Replace use of mddev->raid_disks with conf->raid_disks.

In general mddev->raid_disks can change unexpectedly while
conf->raid_disks will only change in a very controlled way.  So change
some uses of one to the other.

The use of mddev->raid_disks will not cause actually problems but
this way is more consistent and safer in the long term.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c