Btrfs: Avoid delayed reference update looping
authorYan Zheng <zheng.yan@oracle.com>
Fri, 24 Jul 2009 16:42:46 +0000 (12:42 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 24 Jul 2009 16:42:46 +0000 (12:42 -0400)
commitd717aa1d31c36cb56059e97966cb76f0be021969
treebb3f8aafe721504c329d448f84f3b3868e056413
parent0a4eefbb745ec0e8a5b694ae3f40cc34082d8f61
Btrfs: Avoid delayed reference update looping

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: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c