]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super1: separate to version of _avail_space1().
authorNeilBrown <neilb@suse.de>
Tue, 30 Jul 2013 05:17:22 +0000 (15:17 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 30 Jul 2013 05:59:03 +0000 (15:59 +1000)
commit641da74591920d4cfd4f92e7eefbf317d6ec348c
treee36a837f9ffedb707fad1094e6afeec41f6de628
parent7ccc4cc4fc6889680bbe4ec673cab3f6aa49aad3
super1: separate to version of _avail_space1().

_avail_space1() is calls from both avail_space1() and validate_geometry1()
and does slightly different things.

The partial code sharing doesn't really help.  In particularly the
responsibility for setting the size of the array is currently
confused.

So duplicate the code into the two locations - one where 'super' is
always NULL (validate_geometry1) and one where it is never NULL
(avail_space1), and simplify.

No behaviour change - just code re-organisation.

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