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()
982 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1092 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1135 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1247 eb_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_add_branch()
1296 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1300 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1373 eb_el->l_next_free_rec = root_el->l_next_free_rec; in ocfs2_shift_tree_depth()
1374 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1393 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1395 root_el->l_next_free_rec = cpu_to_le16(1); in ocfs2_shift_tree_depth()
1445 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1452 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1474 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1485 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1580 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1600 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1606 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1662 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1666 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1674 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1684 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1697 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1707 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1716 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1784 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1794 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1829 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1835 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1958 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
1994 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2003 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2056 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2109 if (left_el->l_next_free_rec != left_el->l_count) { in ocfs2_rotate_subtree_right()
2114 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2155 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails " in ocfs2_rotate_subtree_right()
2165 i = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_rotate_subtree_right()
2176 le16_add_cpu(&left_el->l_next_free_rec, -1); in ocfs2_rotate_subtree_right()
2179 le16_add_cpu(&left_el->l_next_free_rec, 1); in ocfs2_rotate_subtree_right()
2218 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2301 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2311 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()
2626 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2630 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2633 le16_add_cpu(&root_el->l_next_free_rec, -1); in ocfs2_unlink_subtree()
2686 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2701 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { in ocfs2_rotate_subtree_left()
2835 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2836 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
3110 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3210 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3213 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3322 BUG_ON(left_el->l_next_free_rec != left_el->l_count); in ocfs2_get_right_path()
3378 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3381 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3382 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3391 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3442 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3556 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3560 le16_to_cpu(left_el->l_next_free_rec) - 1]; in ocfs2_merge_rec_left()
3643 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3875 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3876 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3879 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3887 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3893 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3901 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3908 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3943 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3988 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4366 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4373 le16_to_cpu(new_el->l_next_free_rec), in ocfs2_figure_merge_contig_type()
4379 le16_to_cpu(new_el->l_next_free_rec) - 1]; in ocfs2_figure_merge_contig_type()
4397 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4399 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4422 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4428 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4468 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4516 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4521 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4525 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4595 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4916 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
5304 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5354 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5389 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5436 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
6826 di->id2.i_list.l_next_free_rec = 0; in ocfs2_dinode_new_extent_list()
7094 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7103 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()