Skip to content

Commit

Permalink
md/raid5: move stripe_head_state and more code into handle_stripe.
Browse files Browse the repository at this point in the history
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 <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
  • Loading branch information
NeilBrown committed Jul 26, 2011
1 parent c5709ef commit cc94015
Showing 1 changed file with 158 additions and 182 deletions.
Loading

0 comments on commit cc94015

Please sign in to comment.