md: Don't test all of mddev->flags at once.
authorNeilBrown <neilb@suse.de>
Tue, 27 Aug 2013 06:28:23 +0000 (16:28 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 27 Aug 2013 06:28:23 +0000 (16:28 +1000)
commit7a0a5355cbc71efa430c3730ffbd67ae04abfe31
tree3e45ce8d666145ead0b859f402aa6fbf1f73f567
parentc9ad020fec895bf1e5fcc322d0ab9e67efd3e3a0
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>
drivers/md/md.c
drivers/md/md.h