Lines Matching refs:next_free
1598 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right() local
1602 BUG_ON(!next_free); in ocfs2_shift_records_right()
1604 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1606 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1614 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1618 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1621 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1636 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1639 next_free--; in ocfs2_rotate_leaf()
1645 for(i = 0; i < next_free; i++) { in ocfs2_rotate_leaf()
1654 has_empty, next_free, in ocfs2_rotate_leaf()
1659 BUG_ON(insert_index > next_free); in ocfs2_rotate_leaf()
1664 if (insert_index != next_free) { in ocfs2_rotate_leaf()
1665 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1667 num_bytes = next_free - insert_index; in ocfs2_rotate_leaf()
1679 next_free++; in ocfs2_rotate_leaf()
1680 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1715 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent() local
1719 if (next_free == 0) in ocfs2_create_empty_extent()
2313 int next_free; in ocfs2_rotate_requires_path_adjustment() local
2316 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2317 rec = &left_el->l_recs[next_free - 1]; in ocfs2_rotate_requires_path_adjustment()
2326 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains() local
2330 if (next_free == 0) in ocfs2_leftmost_rec_contains()
2336 if (next_free == 1) in ocfs2_leftmost_rec_contains()
2823 int next_free; in ocfs2_find_cpos_for_right_leaf() local
2831 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2834 if (j == (next_free - 1)) { in ocfs2_find_cpos_for_right_leaf()
3349 int ret, next_free, i; in ocfs2_merge_rec_right() local
3373 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3374 BUG_ON(next_free <= 0); in ocfs2_merge_rec_right()
3377 BUG_ON(next_free <= 1); in ocfs2_merge_rec_right()
3955 int i, next_free; in ocfs2_adjust_rightmost_records() local
3967 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3968 if (next_free == 0) { in ocfs2_adjust_rightmost_records()
3975 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3993 int ret, next_free; in ocfs2_append_rec_to_path() local
4011 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4012 if (next_free == 0 || in ocfs2_append_rec_to_path()
4013 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
5453 int next_free; in ocfs2_truncate_rec() local
5458 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5459 if (is_rightmost_tree_rec && next_free > 1) { in ocfs2_truncate_rec()
5464 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()