]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: Simplify allocation of "other BVDs"
authormwilck@arcor.de <mwilck@arcor.de>
Wed, 3 Jul 2013 20:27:53 +0000 (22:27 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 8 Jul 2013 06:48:30 +0000 (16:48 +1000)
commit3c48f7be465909921bff8f62ac1125800e930db7
tree339b802a941ee9446c1eddac4cddb5dbfa05c3cb
parenta3163bf0691494adbf2e2b99f1826ca5a849ee93
DDF: Simplify allocation of "other BVDs"

Instead of allocating the other_bvds array and every element
separately, allocate all in a single chunk. Also, move allocation
in a subroutine as it's used in several places.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c