Lines Matching refs:next_free

1580 	int next_free = le16_to_cpu(el->l_next_free_rec);  in ocfs2_shift_records_right()  local
1584 BUG_ON(!next_free); in ocfs2_shift_records_right()
1586 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1588 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1596 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1600 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1603 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1618 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1621 next_free--; in ocfs2_rotate_leaf()
1627 for(i = 0; i < next_free; i++) { in ocfs2_rotate_leaf()
1636 has_empty, next_free, in ocfs2_rotate_leaf()
1641 BUG_ON(insert_index > next_free); in ocfs2_rotate_leaf()
1646 if (insert_index != next_free) { in ocfs2_rotate_leaf()
1647 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1649 num_bytes = next_free - insert_index; in ocfs2_rotate_leaf()
1661 next_free++; in ocfs2_rotate_leaf()
1662 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1697 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent() local
1701 if (next_free == 0) in ocfs2_create_empty_extent()
2298 int next_free; in ocfs2_rotate_requires_path_adjustment() local
2301 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2302 rec = &left_el->l_recs[next_free - 1]; in ocfs2_rotate_requires_path_adjustment()
2311 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains() local
2315 if (next_free == 0) in ocfs2_leftmost_rec_contains()
2321 if (next_free == 1) in ocfs2_leftmost_rec_contains()
2827 int next_free; in ocfs2_find_cpos_for_right_leaf() local
2835 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2838 if (j == (next_free - 1)) { in ocfs2_find_cpos_for_right_leaf()
3367 int ret, next_free, i; in ocfs2_merge_rec_right() local
3391 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3392 BUG_ON(next_free <= 0); in ocfs2_merge_rec_right()
3395 BUG_ON(next_free <= 1); in ocfs2_merge_rec_right()
3931 int ret, i, next_free; in ocfs2_adjust_rightmost_records() local
3943 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3944 if (next_free == 0) { in ocfs2_adjust_rightmost_records()
3952 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3970 int ret, next_free; in ocfs2_append_rec_to_path() local
3988 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
3989 if (next_free == 0 || in ocfs2_append_rec_to_path()
3990 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
5430 int next_free; in ocfs2_truncate_rec() local
5436 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5437 if (is_rightmost_tree_rec && next_free > 1) { in ocfs2_truncate_rec()
5442 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()