• Ilya Dryomov's avatar
    Btrfs: make avail_*_alloc_bits fields dynamic · 10ea00f5
    Ilya Dryomov authored
    Currently when new chunks are created respective avail_alloc_bits field
    is updated to reflect profiles of all chunks present in the system.
    However when chunks are removed profile bits are never cleared.
    
    This patch clears profile bit of respective avail_alloc_bits field when
    the last chunk with that profile is removed.  Restriper needs this to
    properly operate when "downgrading".
    Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
    10ea00f5
extent-tree.c 204 KB