]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: use set_bit, test_bit, etc for operation on bitmap->flags.
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:56 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:56 +0000 (10:57 +1000)
commitaa66c5d49161d1d5b8a8fa055edd970e28e0bf6b
tree46d5122e522ec2dfa9d7e6f65a68a1cc9930b1e0
parentfd9e39679c5f03d123e6ad2d6570288723c12069
md/bitmap: use set_bit, test_bit, etc for operation on bitmap->flags.

We currently use '&' and '|' which isn't the norm in the kernel
and doesn't allow easy atomicity.
So change to bit numbers and {set,clear,test}_bit.
This allows us to remove a spinlock/unlock (which was dubious anyway)
and some other simplifications.

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