From: NeilBrown Date: Wed, 25 Feb 2015 01:10:35 +0000 (+1100) Subject: md/raid5: move max_nr_stripes management into grow_one_stripe and drop_one_stripe X-Git-Tag: omap-for-v4.2/o2_dc~24^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=486f0644c3482cbf64fe804499836e1f05abec14;p=pandora-kernel.git 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: NeilBrown --- Reading git-diff-tree failed