diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-03-30 23:59:03 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-03-30 23:59:03 -0400 |
commit | 1f403624bde3c678a166984b1e6a727a0ce06f2b (patch) | |
tree | b66ed37091e825bcde1cd0d333d4ebba86772805 /drivers/md/md.c | |
parent | 80c3a6ce4ba4470379b9e6a4d9bcd9d2ee26ae03 (diff) |
md: centralize ->array_sectors modifications
Get personalities out of the business of directly modifying
->array_sectors. Lays groundwork to introduce policy on when
->array_sectors can be modified.
Reviewed-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 0689d89d263c..76ba69b31d6a 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -4977,6 +4977,12 @@ static int set_array_info(mddev_t * mddev, mdu_array_info_t *info) | |||
4977 | return 0; | 4977 | return 0; |
4978 | } | 4978 | } |
4979 | 4979 | ||
4980 | void md_set_array_sectors(mddev_t *mddev, sector_t array_sectors) | ||
4981 | { | ||
4982 | mddev->array_sectors = array_sectors; | ||
4983 | } | ||
4984 | EXPORT_SYMBOL(md_set_array_sectors); | ||
4985 | |||
4980 | static int update_size(mddev_t *mddev, sector_t num_sectors) | 4986 | static int update_size(mddev_t *mddev, sector_t num_sectors) |
4981 | { | 4987 | { |
4982 | mdk_rdev_t *rdev; | 4988 | mdk_rdev_t *rdev; |