• N
    md: bitmap: improve bitmap maintenance code. · be512691
    NeilBrown 提交于
    The code for checking which bits in the bitmap can be cleared
    has 2 problems:
     1/ it repeatedly takes and drops a spinlock, where it would make
        more sense to just hold on to it most of the time.
     2/ it doesn't make use of some opportunities to skip large sections
        of the bitmap
    
    This patch fixes those.  It will only affect CPU consumption, not
    correctness.
    Signed-off-by: NNeilBrown <neilb@suse.de>
    be512691
bitmap.c 44.1 KB