• NeilBrown's avatar
    md: Don't test all of mddev->flags at once. · 7a0a5355
    NeilBrown authored
    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>
    7a0a5355
md.h 21.1 KB