diff options
| author | Andre Noll <maan@systemlinux.org> | 2009-06-16 16:47:36 +1000 |
|---|---|---|
| committer | NeilBrown <neilb@suse.de> | 2009-06-16 16:47:36 +1000 |
| commit | ed7b00380d957ec770b5e90380d012c6062c13cc (patch) | |
| tree | 8eced97cefca4be9f8eefce22ecb64a49ef6771b /tools/perf/scripts/python | |
| parent | md: raid0: Make raid0_run() return a proper error code. (diff) | |
| download | linux-ed7b00380d957ec770b5e90380d012c6062c13cc.tar.gz linux-ed7b00380d957ec770b5e90380d012c6062c13cc.zip | |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
