]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DM RAID: Move 'rebuild' checking code to its own function
authorJonathan Brassow <jbrassow@redhat.com>
Thu, 27 Sep 2012 02:37:25 +0000 (12:37 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:25 +0000 (12:37 +1000)
commit4ec91f095986bcfefcff81b55312c2c789ab7fcc
tree7a5c3861bc64ed3291abdccc7c2fadfc8ef9dbf5
parent441e8950968bc2f5a47c304590f7c9d3b25321d0
DM RAID: Move 'rebuild' checking code to its own function

DM RAID:  Move chunk of code to it's own function

The code that checks whether device replacements/rebuilds are possible given
a specific RAID type is moved to it's own function.  It will further expand
when the code to check RAID10 is added.  A separate function makes it easier
to read.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/dm-raid.c