Lines Matching refs:next_free

1595 	int next_free = le16_to_cpu(el->l_next_free_rec);  in ocfs2_shift_records_right()  local
1599 BUG_ON(!next_free); in ocfs2_shift_records_right()
1601 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1603 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1611 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1615 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1618 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1633 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1636 next_free--; in ocfs2_rotate_leaf()
1642 for(i = 0; i < next_free; i++) { in ocfs2_rotate_leaf()
1651 has_empty, next_free, in ocfs2_rotate_leaf()
1656 BUG_ON(insert_index > next_free); in ocfs2_rotate_leaf()
1661 if (insert_index != next_free) { in ocfs2_rotate_leaf()
1662 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1664 num_bytes = next_free - insert_index; in ocfs2_rotate_leaf()
1676 next_free++; in ocfs2_rotate_leaf()
1677 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1712 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent() local
1716 if (next_free == 0) in ocfs2_create_empty_extent()
2310 int next_free; in ocfs2_rotate_requires_path_adjustment() local
2313 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2314 rec = &left_el->l_recs[next_free - 1]; in ocfs2_rotate_requires_path_adjustment()
2323 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains() local
2327 if (next_free == 0) in ocfs2_leftmost_rec_contains()
2333 if (next_free == 1) in ocfs2_leftmost_rec_contains()
2820 int next_free; in ocfs2_find_cpos_for_right_leaf() local
2828 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2831 if (j == (next_free - 1)) { in ocfs2_find_cpos_for_right_leaf()
3346 int ret, next_free, i; in ocfs2_merge_rec_right() local
3370 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3371 BUG_ON(next_free <= 0); in ocfs2_merge_rec_right()
3374 BUG_ON(next_free <= 1); in ocfs2_merge_rec_right()
3952 int i, next_free; in ocfs2_adjust_rightmost_records() local
3964 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3965 if (next_free == 0) { in ocfs2_adjust_rightmost_records()
3972 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3990 int ret, next_free; in ocfs2_append_rec_to_path() local
4008 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4009 if (next_free == 0 || in ocfs2_append_rec_to_path()
4010 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
5450 int next_free; in ocfs2_truncate_rec() local
5455 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5456 if (is_rightmost_tree_rec && next_free > 1) { in ocfs2_truncate_rec()
5461 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()