• Home
  • Raw
  • Download

Lines Matching refs:next_free

1585 	int next_free = le16_to_cpu(el->l_next_free_rec);  in ocfs2_shift_records_right()  local
1589 BUG_ON(!next_free); in ocfs2_shift_records_right()
1591 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1593 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1601 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1605 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1608 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1623 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1626 next_free--; in ocfs2_rotate_leaf()
1632 for(i = 0; i < next_free; i++) { in ocfs2_rotate_leaf()
1641 has_empty, next_free, in ocfs2_rotate_leaf()
1646 BUG_ON(insert_index > next_free); in ocfs2_rotate_leaf()
1651 if (insert_index != next_free) { in ocfs2_rotate_leaf()
1652 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1654 num_bytes = next_free - insert_index; in ocfs2_rotate_leaf()
1666 next_free++; in ocfs2_rotate_leaf()
1667 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1702 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent() local
1706 if (next_free == 0) in ocfs2_create_empty_extent()
2308 int next_free; in ocfs2_rotate_requires_path_adjustment() local
2311 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2312 rec = &left_el->l_recs[next_free - 1]; in ocfs2_rotate_requires_path_adjustment()
2321 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains() local
2325 if (next_free == 0) in ocfs2_leftmost_rec_contains()
2331 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()
3353 int ret, next_free, i; in ocfs2_merge_rec_right() local
3377 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3378 BUG_ON(next_free <= 0); in ocfs2_merge_rec_right()
3381 BUG_ON(next_free <= 1); in ocfs2_merge_rec_right()
3919 int ret, i, next_free; in ocfs2_adjust_rightmost_records() local
3931 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3932 if (next_free == 0) { in ocfs2_adjust_rightmost_records()
3940 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3958 int ret, next_free; in ocfs2_append_rec_to_path() local
3976 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
3977 if (next_free == 0 || in ocfs2_append_rec_to_path()
3978 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
5388 int next_free; in ocfs2_truncate_rec() local
5394 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5395 if (is_rightmost_tree_rec && next_free > 1) { in ocfs2_truncate_rec()
5400 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()