Lines Matching refs:next_free
1597 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right() local
1601 BUG_ON(!next_free); in ocfs2_shift_records_right()
1603 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1605 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1613 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1617 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1620 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1635 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1638 next_free--; in ocfs2_rotate_leaf()
1644 for(i = 0; i < next_free; i++) { in ocfs2_rotate_leaf()
1653 has_empty, next_free, in ocfs2_rotate_leaf()
1658 BUG_ON(insert_index > next_free); in ocfs2_rotate_leaf()
1663 if (insert_index != next_free) { in ocfs2_rotate_leaf()
1664 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1666 num_bytes = next_free - insert_index; in ocfs2_rotate_leaf()
1678 next_free++; in ocfs2_rotate_leaf()
1679 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1714 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent() local
1718 if (next_free == 0) in ocfs2_create_empty_extent()
2312 int next_free; in ocfs2_rotate_requires_path_adjustment() local
2315 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2316 rec = &left_el->l_recs[next_free - 1]; in ocfs2_rotate_requires_path_adjustment()
2325 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains() local
2329 if (next_free == 0) in ocfs2_leftmost_rec_contains()
2335 if (next_free == 1) in ocfs2_leftmost_rec_contains()
2822 int next_free; in ocfs2_find_cpos_for_right_leaf() local
2830 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2833 if (j == (next_free - 1)) { in ocfs2_find_cpos_for_right_leaf()
3348 int ret, next_free, i; in ocfs2_merge_rec_right() local
3372 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3373 BUG_ON(next_free <= 0); in ocfs2_merge_rec_right()
3376 BUG_ON(next_free <= 1); in ocfs2_merge_rec_right()
3954 int i, next_free; in ocfs2_adjust_rightmost_records() local
3966 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3967 if (next_free == 0) { in ocfs2_adjust_rightmost_records()
3974 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3992 int ret, next_free; in ocfs2_append_rec_to_path() local
4010 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4011 if (next_free == 0 || in ocfs2_append_rec_to_path()
4012 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
5452 int next_free; in ocfs2_truncate_rec() local
5457 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5458 if (is_rightmost_tree_rec && next_free > 1) { in ocfs2_truncate_rec()
5463 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()