Lines Matching refs:l_next_free_rec
773 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_search_extent_list()
979 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1088 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1131 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1263 eb_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_add_branch()
1312 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1316 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1399 eb_el->l_next_free_rec = root_el->l_next_free_rec; in ocfs2_shift_tree_depth()
1400 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1419 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1421 root_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_shift_tree_depth()
1471 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1477 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1498 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1509 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1602 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1622 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1628 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1684 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1688 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1696 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1706 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1719 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1729 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1738 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1806 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1816 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1851 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1857 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1978 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
2014 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2023 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2076 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2128 if (left_el->l_next_free_rec != left_el->l_count) { in ocfs2_rotate_subtree_right()
2133 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2174 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails " in ocfs2_rotate_subtree_right()
2184 i = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_rotate_subtree_right()
2195 le16_add_cpu(&left_el->l_next_free_rec, -1); in ocfs2_rotate_subtree_right()
2198 le16_add_cpu(&left_el->l_next_free_rec, 1); in ocfs2_rotate_subtree_right()
2237 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2320 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2330 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2549 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2550 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2556 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2587 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2593 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2600 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2627 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2631 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2634 le16_add_cpu(&root_el->l_next_free_rec, -1); in ocfs2_unlink_subtree()
2687 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2702 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { in ocfs2_rotate_subtree_left()
2835 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2836 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
3097 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3197 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3200 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3308 BUG_ON(left_el->l_next_free_rec != left_el->l_count); in ocfs2_get_right_path()
3364 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3367 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3368 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3377 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3428 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3542 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3546 le16_to_cpu(left_el->l_next_free_rec) - 1]; in ocfs2_merge_rec_left()
3627 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3903 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3904 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3907 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3915 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3921 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3929 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3936 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3971 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
4015 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4393 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4400 le16_to_cpu(new_el->l_next_free_rec), in ocfs2_figure_merge_contig_type()
4405 le16_to_cpu(new_el->l_next_free_rec) - 1]; in ocfs2_figure_merge_contig_type()
4423 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4425 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4448 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4454 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4493 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4541 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4546 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4550 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4620 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4941 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
5322 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5381 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5416 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5462 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
7034 di->id2.i_list.l_next_free_rec = 0; in ocfs2_dinode_new_extent_list()
7280 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7289 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()