Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
static void rs_set_capacity(struct raid_set *rs)
{
struct mddev *mddev = &rs->md;
+ struct gendisk *gendisk = dm_disk(dm_table_get_md(rs->ti->table));
- if (rs->ti->len != mddev->array_sectors) {
- struct gendisk *gendisk = dm_disk(dm_table_get_md(rs->ti->table));
-
- set_capacity(gendisk, mddev->array_sectors);
- revalidate_disk(gendisk);
- }
+ set_capacity(gendisk, mddev->array_sectors);
+ revalidate_disk(gendisk);
}
/*