Grow: clear new_layout when we change the level.

After changing the level, the meaning of layout numbers changes,
so we will keeping a new_layout value around can cause later confusion.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2013-06-24 13:08:13 +10:00
parent ddbf2ebb0e
commit 9030d55ff2
1 changed files with 1 additions and 0 deletions

1
Grow.c
View File

@ -2783,6 +2783,7 @@ static int reshape_array(char *container, int fd, char *devname,
if (verbose >= 0)
pr_err("level of %s changed to %s\n",
devname, c);
info->new_layout = UnSet; // after level change, layout is meaningless
orig_level = array.level;
sysfs_freeze_array(info);