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

md/raid5: move max_nr_stripes management into grow_one_stripe and drop_one_stripe



Rather than adjusting max_nr_stripes whenever {grow,drop}_one_stripe()
succeeds, do it inside the functions.

Also choose the correct hash to handle next inside the functions.

This removes duplication and will help with future new uses of
{grow,drop}_one_stripe.

This also fixes a minor bug where the "md/raid:%md: allocate XXkB"
message always said "0kB".

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent a9683a79
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