# Re: \[md PATCH 18/34\] md/raid5: move more common code into handle\_stripe

- From: Namhyung Kim \<hidden\>
- Date: 2011-07-22 09:20:02 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2011/07/6616792
- Thread: https://ratatoskr.run/linux-raid/2011/07/6616792/t.md

```text
NeilBrown [ref] writes:

> Apart from 'prexor' which can only be set for RAID5, and
> 'qd_idx' which can only be meaningful for RAID6, these two
> chunks of code are nearly the same.
>
> So combine them into one adding a test to call either
> handle_parity_checks5 or handle_parity_checks6 as appropriate.
>
> Signed-off-by: NeilBrown <redacted>

Reviewed-by: Namhyung Kim <redacted>
```
