• Yan Zheng's avatar
    Btrfs: Avoid delayed reference update looping · d717aa1d
    Yan Zheng authored
    btrfs_split_leaf and btrfs_del_items can end up in a loop
    where one is constantly spliting a given leaf and the other
    is constantly merging it back with the adjacent nodes.
    
    There is a better fix for this, but in the interest of something
    small, this patch just changes btrfs_del_items back to balancing less
    often.
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    d717aa1d
ctree.c 109 KB