• Home
  • Raw
  • Download

Lines Matching refs:rec

89 				     struct ocfs2_extent_rec *rec);
103 struct ocfs2_extent_rec *rec);
147 struct ocfs2_extent_rec *rec);
151 struct ocfs2_extent_rec *rec);
202 struct ocfs2_extent_rec *rec) in ocfs2_dinode_extent_map_insert() argument
206 ocfs2_extent_map_insert_rec(inode, rec); in ocfs2_dinode_extent_map_insert()
218 struct ocfs2_extent_rec *rec) in ocfs2_dinode_insert_check() argument
225 (oi->ip_clusters != le32_to_cpu(rec->e_cpos)), in ocfs2_dinode_insert_check()
230 rec->e_cpos, oi->ip_clusters); in ocfs2_dinode_insert_check()
511 struct ocfs2_extent_rec *rec) in ocfs2_et_extent_map_insert() argument
514 et->et_ops->eo_extent_map_insert(et, rec); in ocfs2_et_extent_map_insert()
534 struct ocfs2_extent_rec *rec, in ocfs2_et_extent_contig() argument
538 return et->et_ops->eo_extent_contig(et, rec, insert_rec); in ocfs2_et_extent_contig()
542 rec, insert_rec); in ocfs2_et_extent_contig()
546 struct ocfs2_extent_rec *rec) in ocfs2_et_insert_check() argument
551 ret = et->et_ops->eo_insert_check(et, rec); in ocfs2_et_insert_check()
772 struct ocfs2_extent_rec *rec; in ocfs2_search_extent_list() local
776 rec = &el->l_recs[i]; in ocfs2_search_extent_list()
778 rec_start = le32_to_cpu(rec->e_cpos); in ocfs2_search_extent_list()
779 clusters = ocfs2_rec_clusters(el, rec); in ocfs2_search_extent_list()
1100 struct ocfs2_extent_rec *rec; in ocfs2_adjust_rightmost_branch() local
1127 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1129 ocfs2_adjust_rightmost_records(handle, et, path, rec); in ocfs2_adjust_rightmost_branch()
1616 struct ocfs2_extent_rec *rec; in ocfs2_rotate_leaf() local
1646 rec = &el->l_recs[i]; in ocfs2_rotate_leaf()
1648 if (insert_cpos < le32_to_cpu(rec->e_cpos)) in ocfs2_rotate_leaf()
1798 struct ocfs2_extent_rec *rec; in __ocfs2_find_path() local
1813 rec = &el->l_recs[i]; in __ocfs2_find_path()
1820 range = le32_to_cpu(rec->e_cpos) + in __ocfs2_find_path()
1821 ocfs2_rec_clusters(el, rec); in __ocfs2_find_path()
1822 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in __ocfs2_find_path()
2312 struct ocfs2_extent_rec *rec; in ocfs2_rotate_requires_path_adjustment() local
2317 rec = &left_el->l_recs[next_free - 1]; in ocfs2_rotate_requires_path_adjustment()
2319 if (insert_cpos > le32_to_cpu(rec->e_cpos)) in ocfs2_rotate_requires_path_adjustment()
2328 struct ocfs2_extent_rec *rec; in ocfs2_leftmost_rec_contains() local
2333 rec = &el->l_recs[0]; in ocfs2_leftmost_rec_contains()
2334 if (ocfs2_is_empty_extent(rec)) { in ocfs2_leftmost_rec_contains()
2338 rec = &el->l_recs[1]; in ocfs2_leftmost_rec_contains()
2341 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2342 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in ocfs2_leftmost_rec_contains()
2529 struct ocfs2_extent_rec *rec; in ocfs2_update_edge_lengths() local
2547 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2548 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2553 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2555 rec->e_int_clusters = cpu_to_le32(range); in ocfs2_update_edge_lengths()
2556 le32_add_cpu(&rec->e_int_clusters, -le32_to_cpu(rec->e_cpos)); in ocfs2_update_edge_lengths()
3260 struct ocfs2_extent_rec *rec = &el->l_recs[index]; in ocfs2_cleanup_merge() local
3263 if (rec->e_leaf_clusters == 0) { in ocfs2_cleanup_merge()
3665 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent() local
3691 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3742 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3748 ret = ocfs2_merge_rec_left(path, handle, et, rec, in ocfs2_try_to_merge_extent()
3828 struct ocfs2_extent_rec *rec, in ocfs2_subtract_from_rec() argument
3841 le32_add_cpu(&rec->e_cpos, in ocfs2_subtract_from_rec()
3843 le64_add_cpu(&rec->e_blkno, len_blocks); in ocfs2_subtract_from_rec()
3844 le16_add_cpu(&rec->e_leaf_clusters, in ocfs2_subtract_from_rec()
3851 le16_add_cpu(&rec->e_leaf_clusters, in ocfs2_subtract_from_rec()
3868 struct ocfs2_extent_rec *rec; in ocfs2_insert_at_leaf() local
3875 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3877 insert->ins_split, rec, in ocfs2_insert_at_leaf()
3886 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3888 rec->e_blkno = insert_rec->e_blkno; in ocfs2_insert_at_leaf()
3889 rec->e_cpos = insert_rec->e_cpos; in ocfs2_insert_at_leaf()
3891 le16_add_cpu(&rec->e_leaf_clusters, in ocfs2_insert_at_leaf()
3912 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3913 range = le32_to_cpu(rec->e_cpos) in ocfs2_insert_at_leaf()
3914 + le16_to_cpu(rec->e_leaf_clusters); in ocfs2_insert_at_leaf()
3958 struct ocfs2_extent_rec *rec; in ocfs2_adjust_rightmost_records() local
3975 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3977 rec->e_int_clusters = insert_rec->e_cpos; in ocfs2_adjust_rightmost_records()
3978 le32_add_cpu(&rec->e_int_clusters, in ocfs2_adjust_rightmost_records()
3980 le32_add_cpu(&rec->e_int_clusters, in ocfs2_adjust_rightmost_records()
3981 -le32_to_cpu(rec->e_cpos)); in ocfs2_adjust_rightmost_records()
4081 struct ocfs2_extent_rec *rec, *tmprec; in ocfs2_split_record() local
4144 rec = &el->l_recs[index]; in ocfs2_split_record()
4146 split, rec, split_rec); in ocfs2_split_record()
4360 struct ocfs2_extent_rec *rec = NULL; in ocfs2_figure_merge_contig_type() local
4368 rec = &el->l_recs[index - 1]; in ocfs2_figure_merge_contig_type()
4400 rec = &new_el->l_recs[ in ocfs2_figure_merge_contig_type()
4409 if (rec) { in ocfs2_figure_merge_contig_type()
4410 if (index == 1 && ocfs2_is_empty_extent(rec)) { in ocfs2_figure_merge_contig_type()
4414 ret = ocfs2_et_extent_contig(et, rec, split_rec); in ocfs2_figure_merge_contig_type()
4418 rec = NULL; in ocfs2_figure_merge_contig_type()
4420 rec = &el->l_recs[index + 1]; in ocfs2_figure_merge_contig_type()
4442 rec = &new_el->l_recs[0]; in ocfs2_figure_merge_contig_type()
4443 if (ocfs2_is_empty_extent(rec)) { in ocfs2_figure_merge_contig_type()
4453 rec = &new_el->l_recs[1]; in ocfs2_figure_merge_contig_type()
4457 if (rec) { in ocfs2_figure_merge_contig_type()
4460 contig_type = ocfs2_et_extent_contig(et, rec, split_rec); in ocfs2_figure_merge_contig_type()
4500 struct ocfs2_extent_rec *rec = in ocfs2_figure_contig_type() local
4502 unsigned int len = le16_to_cpu(rec->e_leaf_clusters) + in ocfs2_figure_contig_type()
4531 struct ocfs2_extent_rec *rec; in ocfs2_figure_appending_type() local
4547 rec = &el->l_recs[i]; in ocfs2_figure_appending_type()
4550 (le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters))) in ocfs2_figure_appending_type()
4714 struct ocfs2_extent_rec rec; in ocfs2_insert_extent() local
4720 memset(&rec, 0, sizeof(rec)); in ocfs2_insert_extent()
4721 rec.e_cpos = cpu_to_le32(cpos); in ocfs2_insert_extent()
4722 rec.e_blkno = cpu_to_le64(start_blk); in ocfs2_insert_extent()
4723 rec.e_leaf_clusters = cpu_to_le16(new_clusters); in ocfs2_insert_extent()
4724 rec.e_flags = flags; in ocfs2_insert_extent()
4725 status = ocfs2_et_insert_check(et, &rec); in ocfs2_insert_extent()
4731 status = ocfs2_figure_insert_type(et, &last_eb_bh, &rec, in ocfs2_insert_extent()
4753 status = ocfs2_do_insert_extent(handle, et, &rec, &insert); in ocfs2_insert_extent()
4757 ocfs2_et_extent_map_insert(et, &rec); in ocfs2_insert_extent()
4887 struct ocfs2_extent_rec *rec) in ocfs2_make_right_split_rec() argument
4889 u32 rec_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_make_right_split_rec()
4890 u32 rec_range = rec_cpos + le16_to_cpu(rec->e_leaf_clusters); in ocfs2_make_right_split_rec()
4897 split_rec->e_blkno = rec->e_blkno; in ocfs2_make_right_split_rec()
4901 split_rec->e_flags = rec->e_flags; in ocfs2_make_right_split_rec()
4916 struct ocfs2_extent_rec rec; in ocfs2_split_and_insert() local
4926 rec = path_leaf_el(path)->l_recs[split_index]; in ocfs2_split_and_insert()
4954 rec_range = le32_to_cpu(rec.e_cpos) + in ocfs2_split_and_insert()
4955 le16_to_cpu(rec.e_leaf_clusters); in ocfs2_split_and_insert()
4957 if (split_rec.e_cpos == rec.e_cpos) { in ocfs2_split_and_insert()
4969 &tmprec, insert_range, &rec); in ocfs2_split_and_insert()
5069 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_split_extent() local
5072 if (le32_to_cpu(rec->e_cpos) > le32_to_cpu(split_rec->e_cpos) || in ocfs2_split_extent()
5073 ((le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters)) < in ocfs2_split_extent()
5104 if (rec->e_cpos == split_rec->e_cpos && in ocfs2_split_extent()
5105 rec->e_leaf_clusters == split_rec->e_leaf_clusters) in ocfs2_split_extent()
5164 struct ocfs2_extent_rec *rec; in ocfs2_change_extent_flag() local
5191 rec = &el->l_recs[index]; in ocfs2_change_extent_flag()
5192 if (new_flags && (rec->e_flags & new_flags)) { in ocfs2_change_extent_flag()
5200 if (clear_flags && !(rec->e_flags & clear_flags)) { in ocfs2_change_extent_flag()
5212 split_rec.e_flags = rec->e_flags; in ocfs2_change_extent_flag()
5284 struct ocfs2_extent_rec *rec; in ocfs2_split_tree() local
5291 rec = &el->l_recs[index]; in ocfs2_split_tree()
5293 &split_rec, new_range, rec); in ocfs2_split_tree()
5355 struct ocfs2_extent_rec *rec; in ocfs2_truncate_rec() local
5390 rec = &el->l_recs[index]; in ocfs2_truncate_rec()
5392 le32_to_cpu(rec->e_cpos) == cpos) { in ocfs2_truncate_rec()
5449 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5452 if (le32_to_cpu(rec->e_cpos) == cpos && rec_range == trunc_range) { in ocfs2_truncate_rec()
5455 memset(rec, 0, sizeof(*rec)); in ocfs2_truncate_rec()
5464 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()
5466 rec); in ocfs2_truncate_rec()
5468 } else if (le32_to_cpu(rec->e_cpos) == cpos) { in ocfs2_truncate_rec()
5470 le32_add_cpu(&rec->e_cpos, len); in ocfs2_truncate_rec()
5471 le64_add_cpu(&rec->e_blkno, ocfs2_clusters_to_blocks(sb, len)); in ocfs2_truncate_rec()
5472 le16_add_cpu(&rec->e_leaf_clusters, -len); in ocfs2_truncate_rec()
5475 le16_add_cpu(&rec->e_leaf_clusters, -len); in ocfs2_truncate_rec()
5477 ocfs2_adjust_rightmost_records(handle, et, path, rec); in ocfs2_truncate_rec()
5483 le32_to_cpu(rec->e_cpos), in ocfs2_truncate_rec()
5484 le16_to_cpu(rec->e_leaf_clusters), cpos, len); in ocfs2_truncate_rec()
5515 struct ocfs2_extent_rec *rec; in ocfs2_remove_extent() local
5565 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5566 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5569 BUG_ON(cpos < le32_to_cpu(rec->e_cpos) || trunc_range > rec_range); in ocfs2_remove_extent()
5573 cpos, len, index, le32_to_cpu(rec->e_cpos), in ocfs2_remove_extent()
5574 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5576 if (le32_to_cpu(rec->e_cpos) == cpos || rec_range == trunc_range) { in ocfs2_remove_extent()
5618 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5619 rec_range = le32_to_cpu(rec->e_cpos) + in ocfs2_remove_extent()
5620 ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5625 cpos, len, le32_to_cpu(rec->e_cpos), in ocfs2_remove_extent()
5626 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5923 struct ocfs2_truncate_rec rec; in ocfs2_replay_truncate_records() local
5954 rec = tl->tl_recs[i]; in ocfs2_replay_truncate_records()
5956 le32_to_cpu(rec.t_start)); in ocfs2_replay_truncate_records()
5957 num_clusters = le32_to_cpu(rec.t_clusters); in ocfs2_replay_truncate_records()
5964 i, le32_to_cpu(rec.t_start), num_clusters); in ocfs2_replay_truncate_records()
7230 struct ocfs2_extent_rec *rec; in ocfs2_commit_truncate() local
7301 rec = &el->l_recs[i]; in ocfs2_commit_truncate()
7302 flags = rec->e_flags; in ocfs2_commit_truncate()
7303 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7305 if (i == 0 && ocfs2_is_empty_extent(rec)) { in ocfs2_commit_truncate()
7310 if (root_el->l_tree_depth && rec->e_int_clusters == 0) { in ocfs2_commit_truncate()
7324 trunc_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_commit_truncate()
7328 } else if (le32_to_cpu(rec->e_cpos) >= new_highest_cpos) { in ocfs2_commit_truncate()
7332 trunc_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_commit_truncate()
7333 trunc_len = ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7334 blkno = le64_to_cpu(rec->e_blkno); in ocfs2_commit_truncate()
7342 coff = new_highest_cpos - le32_to_cpu(rec->e_cpos); in ocfs2_commit_truncate()
7343 blkno = le64_to_cpu(rec->e_blkno) + in ocfs2_commit_truncate()