md: ensure changes to 'write-mostly' are reflected in metadata.
authorNeilBrown <neilb@suse.de>
Thu, 25 Aug 2011 04:43:08 +0000 (14:43 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 25 Aug 2011 04:43:08 +0000 (14:43 +1000)
commitaeb9b211849621f592288ed5ad694de9eeaae87a
treeaffa418deafe2f218dc84e4aeb6ed4bbaf85d3e5
parent5ef56c8fecedf403a346d02140e52a072d693d6b
md: ensure changes to 'write-mostly' are reflected in metadata.

The 'write-mostly' flag can be changed through sysfs.
With 0.90 metadata, those changes are reflected in the metadata.
For 1.x metadata, they aren't.

So fix super_1_sync to record 'write-mostly' status.

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