Lines Matching refs:l_next_free_rec
789 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_search_extent_list()
988 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1098 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1141 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1273 eb_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_add_branch()
1322 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1326 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1409 eb_el->l_next_free_rec = root_el->l_next_free_rec; in ocfs2_shift_tree_depth()
1410 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1429 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1431 root_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_shift_tree_depth()
1481 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1487 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1508 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1519 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1612 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1632 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1638 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1694 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1698 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1706 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1716 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1729 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1739 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1748 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1816 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1826 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1861 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1867 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1988 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
2024 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2033 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2086 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2138 if (left_el->l_next_free_rec != left_el->l_count) { in ocfs2_rotate_subtree_right()
2143 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2184 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails " in ocfs2_rotate_subtree_right()
2194 i = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_rotate_subtree_right()
2205 le16_add_cpu(&left_el->l_next_free_rec, -1); in ocfs2_rotate_subtree_right()
2208 le16_add_cpu(&left_el->l_next_free_rec, 1); in ocfs2_rotate_subtree_right()
2247 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2330 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2340 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2559 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2560 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2566 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2597 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2603 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2610 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2637 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2641 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2644 le16_add_cpu(&root_el->l_next_free_rec, -1); in ocfs2_unlink_subtree()
2697 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2712 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()
3107 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3207 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3210 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3318 BUG_ON(left_el->l_next_free_rec != left_el->l_count); in ocfs2_get_right_path()
3374 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3377 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3378 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3387 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3438 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3552 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3556 le16_to_cpu(left_el->l_next_free_rec) - 1]; in ocfs2_merge_rec_left()
3637 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3913 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3914 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3917 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3925 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3931 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3939 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3946 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3981 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
4025 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4403 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4410 le16_to_cpu(new_el->l_next_free_rec), in ocfs2_figure_merge_contig_type()
4415 le16_to_cpu(new_el->l_next_free_rec) - 1]; in ocfs2_figure_merge_contig_type()
4433 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4435 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4458 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4464 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4503 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4551 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4556 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4560 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4630 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4951 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
5336 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5395 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5430 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5476 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
7023 di->id2.i_list.l_next_free_rec = 0; in ocfs2_dinode_new_extent_list()
7291 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7300 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()