]> 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)
commit2f8c7ac682c7999175dd9763efc1a9c363d411ed
tree3e45ce8d666145ead0b859f402aa6fbf1f73f567
parente3d238db7fe02e2a34f79fdb22e55c1f9b1a9216
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