Neil Brown d7027458d6 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 <neilb@suse.de>
2008-07-21 14:22:18 +10:00
..
2008-07-04 10:40:05 -07:00
2008-05-20 16:44:43 +02:00
2008-06-19 00:12:36 +02:00
2008-05-20 13:31:55 -07:00
2008-07-21 14:22:18 +10:00
2008-05-21 16:56:00 -07:00
2008-07-04 10:40:05 -07:00
2008-07-04 10:40:05 -07:00
2008-07-04 10:40:08 -07:00
2008-05-20 13:31:55 -07:00
2008-07-08 12:51:08 -07:00