Skip to content
Snippets Groups Projects
Commit 0095dbc9 authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer
Browse files

dm raid: fix rs_set_capacity on growing reshape

parent 9d9d939c
Branches
Tags
No related merge requests found
......@@ -616,14 +616,11 @@ static struct raid_type *get_raid_type_by_ll(const int level, const int layout)
static void rs_set_capacity(struct raid_set *rs)
{
struct mddev *mddev = &rs->md;
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 the mddev properties in @rs to the current
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment