• Yan Zheng's avatar
    Btrfs: fix leaking block group on balance · d2fb3437
    Yan Zheng authored
    The block group structs are referenced in many different
    places, and it's not safe to free while balancing.  So, those block
    group structs were simply leaked instead.
    
    This patch replaces the block group pointer in the inode with the starting byte
    offset of the block group and adds reference counting to the block group
    struct.
    Signed-off-by: default avatarYan Zheng <zheng.yan@oracle.com>
    d2fb3437
ioctl.c 27.1 KB