From: Neil Brown Date: Sat, 12 Jul 2008 00:37:50 +0000 (+1000) Subject: md: Tidy up rdev_size_store a bit: X-Git-Tag: v2.6.27-rc1~957^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7027458d68b2f1752a28016dcf2ffd0a7e8f567;p=pandora-kernel.git md: Tidy up rdev_size_store a bit: - used strict_strtoull in place of simple_strtoull - use my_mddev in place of rdev->mddev (they have the same value) and more significantly, - don't adjust mddev->size to fit, rather reject changes which make rdev->size smaller than mddev->size Adjusting mddev->size is a hangover from bind_rdev_to_array which does a similar thing. But it really is a better design to insist that mddev->size is set as required, then the rdev->sizes are set to allow for that. The previous way invites confusion. Signed-off-by: NeilBrown --- Reading git-diff-tree failed