]> git.baikalelectronics.ru Git - kernel.git/commit
DM RAID: Move 'rebuild' checking code to its own function
authorJonathan Brassow <jbrassow@redhat.com>
Thu, 11 Oct 2012 02:40:09 +0000 (13:40 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:40:09 +0000 (13:40 +1100)
commit2946ee0b39cc7d9cf4f62483491f753d7b66447f
treeeb79232eac585fcf2a2ad15eff108ef873f72d67
parent9124817970d919c6112b356b6e8e71586b4537b1
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