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()
1156 struct ocfs2_extent_block *eb; in ocfs2_add_branch() local
1164 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_add_branch()
1165 el = &eb->h_list; in ocfs2_add_branch()
1174 eb = (struct ocfs2_extent_block *)(*last_eb_bh)->b_data; in ocfs2_add_branch()
1175 new_cpos = ocfs2_sum_rightmost_rec(&eb->h_list); in ocfs2_add_branch()
1244 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_add_branch()
1246 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_add_branch()
1247 eb_el = &eb->h_list; in ocfs2_add_branch()
1256 eb->h_next_leaf_blk = 0; in ocfs2_add_branch()
1272 new_last_eb_blk = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1275 next_blkno = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1317 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_add_branch()
1318 eb->h_next_leaf_blk = cpu_to_le64(new_last_eb_blk); in ocfs2_add_branch()
1357 struct ocfs2_extent_block *eb; in ocfs2_shift_tree_depth() local
1378 eb = (struct ocfs2_extent_block *) new_eb_bh->b_data; in ocfs2_shift_tree_depth()
1380 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_shift_tree_depth()
1382 eb_el = &eb->h_list; in ocfs2_shift_tree_depth()
1412 root_el->l_recs[0].e_blkno = eb->h_blkno; in ocfs2_shift_tree_depth()
1421 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_shift_tree_depth()
1456 struct ocfs2_extent_block *eb; in ocfs2_find_branch_target() local
1490 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_branch_target()
1491 el = &eb->h_list; in ocfs2_find_branch_target()
1795 struct ocfs2_extent_block *eb; in __ocfs2_find_path() local
1843 eb = (struct ocfs2_extent_block *) bh->b_data; in __ocfs2_find_path()
1844 el = &eb->h_list; in __ocfs2_find_path()
1907 struct ocfs2_extent_block *eb =(struct ocfs2_extent_block *)bh->b_data; in find_leaf_ins() local
1908 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins()
2530 struct ocfs2_extent_block *eb; in ocfs2_update_edge_lengths() local
2540 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_update_edge_lengths()
2541 BUG_ON(eb->h_next_leaf_blk != 0ULL); in ocfs2_update_edge_lengths()
2543 el = &eb->h_list; in ocfs2_update_edge_lengths()
2569 struct ocfs2_extent_block *eb; in ocfs2_unlink_path() local
2576 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_unlink_path()
2581 el = &eb->h_list; in ocfs2_unlink_path()
2587 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_unlink_path()
2600 ret = ocfs2_cache_extent_block_free(dealloc, eb); in ocfs2_unlink_path()
2618 struct ocfs2_extent_block *eb; in ocfs2_unlink_subtree() local
2620 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2623 if (root_el->l_recs[i].e_blkno == eb->h_blkno) in ocfs2_unlink_subtree()
2631 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_unlink_subtree()
2632 eb->h_next_leaf_blk = 0; in ocfs2_unlink_subtree()
2652 struct ocfs2_extent_block *eb; in ocfs2_rotate_subtree_left() local
2664 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2679 if (eb->h_next_leaf_blk != 0ULL) in ocfs2_rotate_subtree_left()
2696 if (eb->h_next_leaf_blk == 0ULL && in ocfs2_rotate_subtree_left()
2752 if (eb->h_next_leaf_blk == 0ULL) { in ocfs2_rotate_subtree_left()
2774 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_rotate_subtree_left()
2775 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_subtree_left()
3024 struct ocfs2_extent_block *eb; in ocfs2_remove_rightmost_path() local
3078 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_remove_rightmost_path()
3079 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_remove_rightmost_path()
3152 struct ocfs2_extent_block *eb; in ocfs2_rotate_tree_left() local
3184 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_rotate_tree_left()
3185 el = &eb->h_list; in ocfs2_rotate_tree_left()
3186 if (eb->h_next_leaf_blk == 0) { in ocfs2_rotate_tree_left()
3199 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_tree_left()
4363 struct ocfs2_extent_block *eb; in ocfs2_figure_merge_contig_type() local
4391 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4394 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4445 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4448 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4578 struct ocfs2_extent_block *eb; in ocfs2_figure_insert_type() local
4602 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_figure_insert_type()
4603 el = &eb->h_list; in ocfs2_figure_insert_type()
4918 struct ocfs2_extent_block *eb; in ocfs2_split_and_insert() local
4932 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_split_and_insert()
4933 rightmost_el = &eb->h_list; in ocfs2_split_and_insert()
5280 struct ocfs2_extent_block *eb; in ocfs2_split_tree() local
5304 eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; in ocfs2_split_tree()
5305 rightmost_el = &eb->h_list; in ocfs2_split_tree()
5355 struct ocfs2_extent_block *eb; in ocfs2_truncate_rec() local
5384 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_truncate_rec()
5385 if (eb->h_next_leaf_blk == 0) in ocfs2_truncate_rec()
6660 struct ocfs2_extent_block *eb; in ocfs2_reuse_blk_from_dealloc() local
6712 eb = (struct ocfs2_extent_block *) new_eb_bh[i]->b_data; in ocfs2_reuse_blk_from_dealloc()
6717 strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_reuse_blk_from_dealloc()
6718 eb->h_blkno = cpu_to_le64(bf->free_blk); in ocfs2_reuse_blk_from_dealloc()
6719 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_reuse_blk_from_dealloc()
6720 eb->h_suballoc_slot = cpu_to_le16(real_slot); in ocfs2_reuse_blk_from_dealloc()
6721 eb->h_suballoc_loc = cpu_to_le64(bf->free_bg); in ocfs2_reuse_blk_from_dealloc()
6722 eb->h_suballoc_bit = cpu_to_le16(bf->free_bit); in ocfs2_reuse_blk_from_dealloc()
6723 eb->h_list.l_count = in ocfs2_reuse_blk_from_dealloc()
6788 struct ocfs2_extent_block *eb) in ocfs2_cache_extent_block_free() argument
6791 le16_to_cpu(eb->h_suballoc_slot), in ocfs2_cache_extent_block_free()
6792 le64_to_cpu(eb->h_suballoc_loc), in ocfs2_cache_extent_block_free()
6793 le64_to_cpu(eb->h_blkno), in ocfs2_cache_extent_block_free()
6794 le16_to_cpu(eb->h_suballoc_bit)); in ocfs2_cache_extent_block_free()