Skip to content
Commit 7a0a5355 authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent c9ad020f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment