Lines Matching refs:l_next_free_rec

780 	for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) {  in ocfs2_search_extent_list()
984 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1094 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1137 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1249 eb_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_add_branch()
1298 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1302 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1375 eb_el->l_next_free_rec = root_el->l_next_free_rec; in ocfs2_shift_tree_depth()
1376 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1395 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1397 root_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_shift_tree_depth()
1447 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1455 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1479 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1490 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1585 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1605 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1611 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1667 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1671 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1679 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1689 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1702 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1712 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1721 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1789 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1800 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1836 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1843 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1966 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
2002 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2011 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2064 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2117 if (left_el->l_next_free_rec != left_el->l_count) { in ocfs2_rotate_subtree_right()
2123 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2164 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails " in ocfs2_rotate_subtree_right()
2174 i = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_rotate_subtree_right()
2185 le16_add_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()
2227 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2311 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2321 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2555 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2556 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2562 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2593 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2599 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2606 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2636 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2640 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2643 le16_add_cpu(&root_el->l_next_free_rec, -1); in ocfs2_unlink_subtree()
2696 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2711 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { in ocfs2_rotate_subtree_left()
2845 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2846 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
3120 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3196 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3199 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()
3629 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3861 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3862 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3865 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3873 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3879 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3887 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3894 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3929 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3974 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4349 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4359 le16_to_cpu(new_el->l_next_free_rec), in ocfs2_figure_merge_contig_type()
4365 le16_to_cpu(new_el->l_next_free_rec) - 1]; in ocfs2_figure_merge_contig_type()
4383 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4385 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4405 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4412 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4449 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4497 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4502 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4506 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4576 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4897 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
5284 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5334 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5369 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5416 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
6808 di->id2.i_list.l_next_free_rec = 0; in ocfs2_dinode_new_extent_list()
7076 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7085 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()