md/bitmap: remove single-bit manipulation on sb->state
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:14 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:14 +0000 (13:55 +1000)
commit84e923453e19d6427c6aa884d9561f01e1425d09
tree6e7421a9a15419ace1377e4338ee2e9c4ed38f67
parentedbb79df6731bb1e99c15f5a519a864d488f4808
md/bitmap: remove single-bit manipulation on sb->state

Just do single-bit manipulations on bitmap->flags and copy whole
value between that and sb->state.

This will allow next patch which changes how bit manipulations are
performed on bitmap->flags.

This does result in BITMAP_STALE not being set in sb by
bitmap_read_sb, however as the setting is determined by other
information in the 'sb' we do not lose information this way.
Normally, bitmap_load will be called shortly which will clear
BITMAP_STALE anyway.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c