Skip to content
Commit b5663ba4 authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent dd8ac336
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment