commit | 7a0a5355cbc71efa430c3730ffbd67ae04abfe31 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Tue Aug 27 16:28:23 2013 +1000 |
committer | NeilBrown <neilb@suse.de> | Tue Aug 27 16:28:23 2013 +1000 |
tree | 3e45ce8d666145ead0b859f402aa6fbf1f73f567 | |
parent | c9ad020fec895bf1e5fcc322d0ab9e67efd3e3a0 [diff] |
md: Don't test all of mddev->flags at once. mddev->flags is mostly used to record if an update of the metadata is needed. Sometimes the whole field is tested instead of just the important bits. This makes it difficult to introduce more state bits. So replace all bare tests of mddev->flags with tests for the bits that actually need testing. Signed-off-by: NeilBrown <neilb@suse.de>