Lines Matching refs:l_next_free_rec

775 	for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) {  in ocfs2_search_extent_list()
974 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1083 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1126 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1258 eb_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_add_branch()
1307 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1311 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1394 eb_el->l_next_free_rec = root_el->l_next_free_rec; in ocfs2_shift_tree_depth()
1395 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1414 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1416 root_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_shift_tree_depth()
1466 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1472 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1493 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1504 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1597 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1617 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1623 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1679 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1683 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1691 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1701 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1714 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1724 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1733 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1801 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1811 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1846 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1852 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1973 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
2009 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2018 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2071 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2123 if (left_el->l_next_free_rec != left_el->l_count) { in ocfs2_rotate_subtree_right()
2128 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2169 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails " in ocfs2_rotate_subtree_right()
2179 i = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_rotate_subtree_right()
2190 le16_add_cpu(&left_el->l_next_free_rec, -1); in ocfs2_rotate_subtree_right()
2193 le16_add_cpu(&left_el->l_next_free_rec, 1); in ocfs2_rotate_subtree_right()
2232 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2315 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2325 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2544 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2545 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2551 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2582 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2588 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2595 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2622 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2626 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2629 le16_add_cpu(&root_el->l_next_free_rec, -1); in ocfs2_unlink_subtree()
2682 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2697 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { in ocfs2_rotate_subtree_left()
2830 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2831 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
3092 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3192 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3195 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3303 BUG_ON(left_el->l_next_free_rec != left_el->l_count); in ocfs2_get_right_path()
3359 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3362 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3363 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3372 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3423 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3537 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3541 le16_to_cpu(left_el->l_next_free_rec) - 1]; in ocfs2_merge_rec_left()
3622 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3898 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3899 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3902 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3910 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3916 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3924 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3931 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3966 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
4010 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4388 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4395 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) - 1]; in ocfs2_figure_merge_contig_type()
4418 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4420 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4443 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4449 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4488 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4536 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4541 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4545 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4615 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4936 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
5317 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5376 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5411 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5457 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
7022 di->id2.i_list.l_next_free_rec = 0; in ocfs2_dinode_new_extent_list()
7290 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7299 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()