md: make sure new_level, new_chunksize, new_layout always have sensible values.
authorNeilBrown <neilb@suse.de>
Tue, 31 Mar 2009 03:39:38 +0000 (14:39 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 31 Mar 2009 03:39:38 +0000 (14:39 +1100)
commit34817e8c3948ea20316dfa8fd8947d6d0ee82ba9
treef4d2e75473b46db94928e21e9fe54b029432418b
parent67cc2b8165857ba019920d1f00d64bcc4140075d
md: make sure new_level, new_chunksize, new_layout always have sensible values.

When an md array is undergoing a change, we have new_* fields that
show the new values.
When no change is happening, it is least confusing if these have
the same value as the normal fields.
This is true in most cases, but not when the values are set via sysfs.

So fix this up.

A subsequent patch will BUG_ON if these things aren't consistent.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c