summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndre Noll <maan@systemlinux.org>2009-06-16 16:47:36 +1000
committerNeilBrown <neilb@suse.de>2009-06-16 16:47:36 +1000
commited7b00380d957ec770b5e90380d012c6062c13cc (patch)
tree8eced97cefca4be9f8eefce22ecb64a49ef6771b /kernel
parent5568a6035d9fca2cd8f1ef7005e215eae4e65fab (diff)
md: raid0: Allocate all buffers for the raid0 configuration in one function.
Currently the raid0 configuration is allocated in raid0_run() while the buffers for the strip_zone and the dev_list arrays are allocated in create_strip_zones(). On errors, all three buffers are freed in raid0_run(). It's easier and more readable to do the allocation and cleanup within a single function. So move that code into create_strip_zones(). Signed-off-by: Andre Noll <maan@systemlinux.org> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions