]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: remove bitmap_mask_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)
commitac194dbe0a6c76a1240c9429a16d2b6e8a0015fc
treeb1813e42c13c17f09a5334a29e3f4376e4438ce1
parent535668929fdbcd767cac10dffff5b239b733b3bf
md/bitmap: remove bitmap_mask_state

This function isn't really needed.  It sets or clears a flag in both
bitmap->flags and sb->state.
However both times it is called, bitmap_update_sb is called soon
afterwards which copies bitmap->flags to sb->state.
So just make changes to bitmap->flags, and open-code those rather than
hiding in a function.

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