Lines Matching refs:eb
565 struct ocfs2_extent_block *eb);
668 struct ocfs2_extent_block *eb = (struct ocfs2_extent_block *)eb_bh->b_data; in ocfs2_path_insert_eb() local
679 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
882 struct ocfs2_extent_block *eb = in ocfs2_validate_extent_block() local
894 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &eb->h_check); in ocfs2_validate_extent_block()
905 if (!OCFS2_IS_VALID_EXTENT_BLOCK(eb)) { in ocfs2_validate_extent_block()
909 eb->h_signature); in ocfs2_validate_extent_block()
913 if (le64_to_cpu(eb->h_blkno) != bh->b_blocknr) { in ocfs2_validate_extent_block()
917 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_validate_extent_block()
921 if (le32_to_cpu(eb->h_fs_generation) != OCFS2_SB(sb)->fs_generation) in ocfs2_validate_extent_block()
925 le32_to_cpu(eb->h_fs_generation)); in ocfs2_validate_extent_block()
954 struct ocfs2_extent_block *eb; in ocfs2_num_free_extents() local
968 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_num_free_extents()
969 el = &eb->h_list; in ocfs2_num_free_extents()
999 struct ocfs2_extent_block *eb; in ocfs2_create_new_meta_bhs() local
1033 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs()
1035 strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_create_new_meta_bhs()
1036 eb->h_blkno = cpu_to_le64(first_blkno); in ocfs2_create_new_meta_bhs()
1037 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_create_new_meta_bhs()
1038 eb->h_suballoc_slot = in ocfs2_create_new_meta_bhs()
1040 eb->h_suballoc_loc = cpu_to_le64(suballoc_loc); in ocfs2_create_new_meta_bhs()
1041 eb->h_suballoc_bit = cpu_to_le16(suballoc_bit_start); in ocfs2_create_new_meta_bhs()
1042 eb->h_list.l_count = in ocfs2_create_new_meta_bhs()
1157 struct ocfs2_extent_block *eb; in ocfs2_add_branch() local
1165 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_add_branch()
1166 el = &eb->h_list; in ocfs2_add_branch()
1175 eb = (struct ocfs2_extent_block *)(*last_eb_bh)->b_data; in ocfs2_add_branch()
1176 new_cpos = ocfs2_sum_rightmost_rec(&eb->h_list); in ocfs2_add_branch()
1245 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_add_branch()
1247 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_add_branch()
1248 eb_el = &eb->h_list; in ocfs2_add_branch()
1257 eb->h_next_leaf_blk = 0; in ocfs2_add_branch()
1273 new_last_eb_blk = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1276 next_blkno = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1318 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_add_branch()
1319 eb->h_next_leaf_blk = cpu_to_le64(new_last_eb_blk); in ocfs2_add_branch()
1358 struct ocfs2_extent_block *eb; in ocfs2_shift_tree_depth() local
1379 eb = (struct ocfs2_extent_block *) new_eb_bh->b_data; in ocfs2_shift_tree_depth()
1381 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_shift_tree_depth()
1383 eb_el = &eb->h_list; in ocfs2_shift_tree_depth()
1413 root_el->l_recs[0].e_blkno = eb->h_blkno; in ocfs2_shift_tree_depth()
1422 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_shift_tree_depth()
1457 struct ocfs2_extent_block *eb; in ocfs2_find_branch_target() local
1491 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_branch_target()
1492 el = &eb->h_list; in ocfs2_find_branch_target()
1796 struct ocfs2_extent_block *eb; in __ocfs2_find_path() local
1844 eb = (struct ocfs2_extent_block *) bh->b_data; in __ocfs2_find_path()
1845 el = &eb->h_list; in __ocfs2_find_path()
1908 struct ocfs2_extent_block *eb =(struct ocfs2_extent_block *)bh->b_data; in find_leaf_ins() local
1909 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins()
2531 struct ocfs2_extent_block *eb; in ocfs2_update_edge_lengths() local
2541 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_update_edge_lengths()
2542 BUG_ON(eb->h_next_leaf_blk != 0ULL); in ocfs2_update_edge_lengths()
2544 el = &eb->h_list; in ocfs2_update_edge_lengths()
2570 struct ocfs2_extent_block *eb; in ocfs2_unlink_path() local
2577 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_unlink_path()
2582 el = &eb->h_list; in ocfs2_unlink_path()
2588 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_unlink_path()
2601 ret = ocfs2_cache_extent_block_free(dealloc, eb); in ocfs2_unlink_path()
2619 struct ocfs2_extent_block *eb; in ocfs2_unlink_subtree() local
2621 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2624 if (root_el->l_recs[i].e_blkno == eb->h_blkno) in ocfs2_unlink_subtree()
2632 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_unlink_subtree()
2633 eb->h_next_leaf_blk = 0; in ocfs2_unlink_subtree()
2653 struct ocfs2_extent_block *eb; in ocfs2_rotate_subtree_left() local
2665 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2680 if (eb->h_next_leaf_blk != 0ULL) in ocfs2_rotate_subtree_left()
2697 if (eb->h_next_leaf_blk == 0ULL && in ocfs2_rotate_subtree_left()
2753 if (eb->h_next_leaf_blk == 0ULL) { in ocfs2_rotate_subtree_left()
2775 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_rotate_subtree_left()
2776 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_subtree_left()
3025 struct ocfs2_extent_block *eb; in ocfs2_remove_rightmost_path() local
3079 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_remove_rightmost_path()
3080 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_remove_rightmost_path()
3153 struct ocfs2_extent_block *eb; in ocfs2_rotate_tree_left() local
3185 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_rotate_tree_left()
3186 el = &eb->h_list; in ocfs2_rotate_tree_left()
3187 if (eb->h_next_leaf_blk == 0) { in ocfs2_rotate_tree_left()
3200 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_tree_left()
4364 struct ocfs2_extent_block *eb; in ocfs2_figure_merge_contig_type() local
4392 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4395 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4446 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4449 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4579 struct ocfs2_extent_block *eb; in ocfs2_figure_insert_type() local
4603 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_figure_insert_type()
4604 el = &eb->h_list; in ocfs2_figure_insert_type()
4919 struct ocfs2_extent_block *eb; in ocfs2_split_and_insert() local
4933 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_split_and_insert()
4934 rightmost_el = &eb->h_list; in ocfs2_split_and_insert()
5281 struct ocfs2_extent_block *eb; in ocfs2_split_tree() local
5305 eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; in ocfs2_split_tree()
5306 rightmost_el = &eb->h_list; in ocfs2_split_tree()
5356 struct ocfs2_extent_block *eb; in ocfs2_truncate_rec() local
5385 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_truncate_rec()
5386 if (eb->h_next_leaf_blk == 0) in ocfs2_truncate_rec()
6661 struct ocfs2_extent_block *eb; in ocfs2_reuse_blk_from_dealloc() local
6713 eb = (struct ocfs2_extent_block *) new_eb_bh[i]->b_data; in ocfs2_reuse_blk_from_dealloc()
6718 strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_reuse_blk_from_dealloc()
6719 eb->h_blkno = cpu_to_le64(bf->free_blk); in ocfs2_reuse_blk_from_dealloc()
6720 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_reuse_blk_from_dealloc()
6721 eb->h_suballoc_slot = cpu_to_le16(real_slot); in ocfs2_reuse_blk_from_dealloc()
6722 eb->h_suballoc_loc = cpu_to_le64(bf->free_bg); in ocfs2_reuse_blk_from_dealloc()
6723 eb->h_suballoc_bit = cpu_to_le16(bf->free_bit); in ocfs2_reuse_blk_from_dealloc()
6724 eb->h_list.l_count = in ocfs2_reuse_blk_from_dealloc()
6789 struct ocfs2_extent_block *eb) in ocfs2_cache_extent_block_free() argument
6792 le16_to_cpu(eb->h_suballoc_slot), in ocfs2_cache_extent_block_free()
6793 le64_to_cpu(eb->h_suballoc_loc), in ocfs2_cache_extent_block_free()
6794 le64_to_cpu(eb->h_blkno), in ocfs2_cache_extent_block_free()
6795 le16_to_cpu(eb->h_suballoc_bit)); in ocfs2_cache_extent_block_free()