]> git.ipfire.org Git - thirdparty/mdadm.git/commit
reshape_array: move lots of code out of a 'switch'.
authorNeilBrown <neilb@suse.de>
Wed, 12 Jan 2011 23:44:52 +0000 (10:44 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 12 Jan 2011 23:44:52 +0000 (10:44 +1100)
commit6b2d630c7d9b5103a31f6353f31c4ea2564b86f6
tree730fa873c0180f4c4fc641b2ceb3ca26d8a0cc1e
parent9202b8eb6a239cf3c3518087db8725740b3a5b80
reshape_array: move lots of code out of a 'switch'.

Everything other than the 'child' part of the 'switch(fork)' returns
quickly, so leave them inside the switch but move the other large bit
out so as to make the flow of code more natural.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c