diff options
author | NeilBrown <neilb@suse.de> | 2011-07-27 03:00:36 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-07-27 03:00:36 +0200 |
commit | 474af965fe0005b334cabdb2904a7d712c21489b (patch) | |
tree | 1d63b4bbe47e2976dd10e7fa4674299b58efc45a /drivers/md/dm-snap-persistent.c | |
parent | md/raid5: move more common code into handle_stripe (diff) | |
download | linux-474af965fe0005b334cabdb2904a7d712c21489b.tar.xz linux-474af965fe0005b334cabdb2904a7d712c21489b.zip |
md/raid5: move some more common code into handle_stripe
The RAID6 version of this code is usable for RAID5 providing:
- we test "conf->max_degraded" rather than "2" as appropriate
- we make sure s->failed_num[1] is meaningful (and not '-1')
when s->failed > 1
The 'return 1' must become 'goto finish' in the new location.
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
Diffstat (limited to 'drivers/md/dm-snap-persistent.c')
0 files changed, 0 insertions, 0 deletions