md/bitmap: remove bitmap_mask_state
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:13 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:13 +0000 (13:55 +1000)
commitedbb79df6731bb1e99c15f5a519a864d488f4808
tree3f2cff223d63a8ec5be507fb991cea083c2b8c7a
parentbc9891a8853842a19c33dda0ba02fbacf7da067f
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