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()
972 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1081 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1124 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1256 eb_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_add_branch()
1305 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1309 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1392 eb_el->l_next_free_rec = root_el->l_next_free_rec; in ocfs2_shift_tree_depth()
1393 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1412 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1414 root_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_shift_tree_depth()
1464 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1470 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1491 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1502 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1595 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1615 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1621 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1677 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1681 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1689 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1699 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1712 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1722 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1731 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1799 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1809 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1844 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1850 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1971 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
2007 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2016 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2069 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2121 if (left_el->l_next_free_rec != left_el->l_count) { in ocfs2_rotate_subtree_right()
2126 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2167 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails " in ocfs2_rotate_subtree_right()
2177 i = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_rotate_subtree_right()
2188 le16_add_cpu(&left_el->l_next_free_rec, -1); in ocfs2_rotate_subtree_right()
2191 le16_add_cpu(&left_el->l_next_free_rec, 1); in ocfs2_rotate_subtree_right()
2230 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2313 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2323 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2542 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2543 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2549 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2580 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2586 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2593 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2620 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2624 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2627 le16_add_cpu(&root_el->l_next_free_rec, -1); in ocfs2_unlink_subtree()
2680 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2695 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { in ocfs2_rotate_subtree_left()
2828 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2829 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
3090 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3190 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3193 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3301 BUG_ON(left_el->l_next_free_rec != left_el->l_count); in ocfs2_get_right_path()
3357 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3360 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3361 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3370 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3421 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3535 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3539 le16_to_cpu(left_el->l_next_free_rec) - 1]; in ocfs2_merge_rec_left()
3620 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3896 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3897 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3900 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3908 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3914 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3922 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3929 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3964 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
4008 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4386 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4393 le16_to_cpu(new_el->l_next_free_rec), in ocfs2_figure_merge_contig_type()
4398 le16_to_cpu(new_el->l_next_free_rec) - 1]; in ocfs2_figure_merge_contig_type()
4416 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4418 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4441 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4447 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4486 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4534 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4539 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4543 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4613 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4934 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
5315 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5374 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5409 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5455 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
7027 di->id2.i_list.l_next_free_rec = 0; in ocfs2_dinode_new_extent_list()
7273 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7282 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()