# Re: \[md PATCH 12/34\] md/raid5: move stripe\_head\_state and more code into handle\_stripe.

- From: Namhyung Kim \<hidden\>
- Date: 2011-07-22 05:41:40 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2011/07/6616781
- Thread: https://ratatoskr.run/linux-raid/2011/07/6616781/t.md

```text
NeilBrown [ref] writes:

> By defining the 'stripe_head_state' in 'handle_stripe', we can move
> some common code out of handle_stripe[56]() and into handle_stripe.
>
> The means that all accesses for stripe_head_state in handle_stripe[56]
> need to be 's->' instead of 's.', but the compiler should inline
> those functions and just use a direct stack reference, and future
> patches while hoist most of this code up into handle_stripe()
> so we will revert to "s.".
>
> Signed-off-by: NeilBrown <redacted>

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