]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: unify stripe_head_state and r6_state
authorNeilBrown <neilb@suse.de>
Tue, 26 Jul 2011 01:35:19 +0000 (11:35 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 26 Jul 2011 01:35:19 +0000 (11:35 +1000)
commit8be37b6b670c0407a3ca381bd611c0c10fe16f9b
tree49f758f1f46ceb9bbab9bdaa40117030f031a0b8
parent021dde97b965a54f3d1ddb264d3b8420f8ee6b8b
md/raid5: unify stripe_head_state and r6_state

'struct stripe_head_state' stores state about the 'current' stripe
that is passed around while handling the stripe.
For RAID6 there is an extension structure: r6_state, which is also
passed around.
There is no value in keeping these separate, so move the fields from
the latter into the former.

This means that all code now needs to treat s->failed_num as an small
array, but this is a small cost.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
drivers/md/raid5.c
drivers/md/raid5.h