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()
1084 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1127 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1259 eb_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_add_branch()
1308 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1312 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1395 eb_el->l_next_free_rec = root_el->l_next_free_rec; in ocfs2_shift_tree_depth()
1396 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1415 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1417 root_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_shift_tree_depth()
1467 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1473 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1494 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1505 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1598 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1618 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1624 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1680 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1684 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1692 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1702 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1715 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1725 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1734 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1802 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1812 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1847 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1853 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1974 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
2010 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2019 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2072 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2124 if (left_el->l_next_free_rec != left_el->l_count) { in ocfs2_rotate_subtree_right()
2129 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2170 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails " in ocfs2_rotate_subtree_right()
2180 i = le16_to_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()
2194 le16_add_cpu(&left_el->l_next_free_rec, 1); in ocfs2_rotate_subtree_right()
2233 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2316 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2326 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2545 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2546 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2552 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2583 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2589 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2596 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2623 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2627 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2630 le16_add_cpu(&root_el->l_next_free_rec, -1); in ocfs2_unlink_subtree()
2683 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2698 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { in ocfs2_rotate_subtree_left()
2831 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2832 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
3093 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3193 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3196 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3304 BUG_ON(left_el->l_next_free_rec != left_el->l_count); in ocfs2_get_right_path()
3360 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3363 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3364 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3373 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3424 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3538 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3542 le16_to_cpu(left_el->l_next_free_rec) - 1]; in ocfs2_merge_rec_left()
3623 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3899 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3900 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3903 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3911 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3917 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3925 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3932 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3967 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
4011 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4389 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4396 le16_to_cpu(new_el->l_next_free_rec), in ocfs2_figure_merge_contig_type()
4401 le16_to_cpu(new_el->l_next_free_rec) - 1]; in ocfs2_figure_merge_contig_type()
4419 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4421 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4444 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4450 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4489 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4537 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4542 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4546 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4616 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4937 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
5318 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5377 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5412 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5458 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()