• Goldwyn Rodrigues's avatar
    Copy set bits from another slot · 11dd35da
    Goldwyn Rodrigues authored
    bitmap_copy_from_slot reads the bitmap from the slot mentioned.
    It then copies the set bits to the node local bitmap.
    
    This is helper function for the resync operation on node failure.
    
    bitmap_set_memory_bits() currently assumes it is only run at startup and that
    they bitmap is currently empty.  So if it finds that a region is already
    marked as dirty, it won't mark it dirty again. Change bitmap_set_memory_bits()
    to always set the NEEDED_MASK bit if 'needed' is set.
    Signed-off-by: default avatarGoldwyn Rodrigues <rgoldwyn@suse.com>
    11dd35da
bitmap.c 64 KB