Lines Matching refs:rfree
654 static int are_leaves_removable(struct tree_balance *tb, int lfree, int rfree) in are_leaves_removable() argument
701 if (MAX_CHILD_SIZE(S0) + vn->vn_size <= rfree + lfree + ih_size) { in are_leaves_removable()
1170 static inline int can_node_be_removed(int mode, int lfree, int sfree, int rfree, in can_node_be_removed() argument
1182 if (lfree + rfree + sfree < MAX_CHILD_SIZE(Sh) + levbytes in can_node_be_removed()
1229 int lfree, sfree, rfree /* free space in L, S and R */ ; in ip_check_balance() local
1287 rfree = get_rfree(tb, h); in ip_check_balance()
1290 if (can_node_be_removed(vn->vn_mode, lfree, sfree, rfree, tb, h) == in ip_check_balance()
1309 check_right(tb, h, rfree); in ip_check_balance()
1570 int lfree, rfree /* free space in L and R */ ; in dc_check_balance_internal() local
1598 rfree = get_rfree(tb, h); in dc_check_balance_internal()
1603 check_right(tb, h, rfree); in dc_check_balance_internal()
1756 int lfree, rfree /* free space in L and R */ ; in dc_check_balance_leaf() local
1778 rfree = get_rfree(tb, h); in dc_check_balance_leaf()
1784 if (are_leaves_removable(tb, lfree, rfree)) in dc_check_balance_leaf()
1792 check_right(tb, h, rfree); in dc_check_balance_leaf()