]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd0856131e8da51a06ff6d4534b9ed38cf4c08d0
tree3e45ce8d666145ead0b859f402aa6fbf1f73f567
parent10be0ac1a9bf4b23da566a6e5414c25ab808a66f
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