NeilBrown b5663ba405 md/raid5: simplify interface for init_stripe and get_active_stripe
Rather than passing 'pd_idx' and 'disks' to these functions, just pass
'previous' which tells whether to use the 'previous' or 'current'
geometry during a reshape, and let init_stripe calculate
disks and pd_idx and anything else it might need.

This is not a substantial simplification and even adds a division.
However we will shortly be adding more complexity to init_stripe
to handle more interesting 'reshape' activities, and without this
change, the interface to these functions would get very complex.

Signed-off-by: NeilBrown <neilb@suse.de>
2009-03-31 14:39:38 +11:00
..
2009-02-18 17:41:38 -08:00
2009-02-18 15:37:56 -08:00
2009-03-04 21:49:14 +10:00
2009-03-05 16:10:58 +01:00
2009-02-26 10:32:31 -08:00
2009-02-27 16:26:22 -08:00
2009-02-11 14:25:36 -08:00
2009-02-18 15:37:56 -08:00