Lines Matching refs:next_free

1612 	int next_free = le16_to_cpu(el->l_next_free_rec);  in ocfs2_shift_records_right()  local
1616 BUG_ON(!next_free); in ocfs2_shift_records_right()
1618 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1620 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1628 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1632 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1635 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1650 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1653 next_free--; in ocfs2_rotate_leaf()
1659 for(i = 0; i < next_free; i++) { in ocfs2_rotate_leaf()
1668 has_empty, next_free, in ocfs2_rotate_leaf()
1673 BUG_ON(insert_index > next_free); in ocfs2_rotate_leaf()
1678 if (insert_index != next_free) { in ocfs2_rotate_leaf()
1679 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1681 num_bytes = next_free - insert_index; in ocfs2_rotate_leaf()
1693 next_free++; in ocfs2_rotate_leaf()
1694 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1729 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent() local
1733 if (next_free == 0) in ocfs2_create_empty_extent()
2327 int next_free; in ocfs2_rotate_requires_path_adjustment() local
2330 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2331 rec = &left_el->l_recs[next_free - 1]; in ocfs2_rotate_requires_path_adjustment()
2340 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains() local
2344 if (next_free == 0) in ocfs2_leftmost_rec_contains()
2350 if (next_free == 1) in ocfs2_leftmost_rec_contains()
2837 int next_free; in ocfs2_find_cpos_for_right_leaf() local
2845 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2848 if (j == (next_free - 1)) { in ocfs2_find_cpos_for_right_leaf()
3363 int ret, next_free, i; in ocfs2_merge_rec_right() local
3387 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3388 BUG_ON(next_free <= 0); in ocfs2_merge_rec_right()
3391 BUG_ON(next_free <= 1); in ocfs2_merge_rec_right()
3969 int i, next_free; in ocfs2_adjust_rightmost_records() local
3981 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3982 if (next_free == 0) { in ocfs2_adjust_rightmost_records()
3989 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
4007 int ret, next_free; in ocfs2_append_rec_to_path() local
4025 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4026 if (next_free == 0 || in ocfs2_append_rec_to_path()
4027 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
5471 int next_free; in ocfs2_truncate_rec() local
5476 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5477 if (is_rightmost_tree_rec && next_free > 1) { in ocfs2_truncate_rec()
5482 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()