]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: remove single-bit manipulation on sb->state
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:55 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:55 +0000 (10:57 +1000)
commitfd9e39679c5f03d123e6ad2d6570288723c12069
treeef1f3fb62950b1ceeb17292bcea8434315046057
parentac194dbe0a6c76a1240c9429a16d2b6e8a0015fc
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