Lines Matching refs:eb
563 struct ocfs2_extent_block *eb);
666 struct ocfs2_extent_block *eb = (struct ocfs2_extent_block *)eb_bh->b_data; in ocfs2_path_insert_eb() local
677 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
880 struct ocfs2_extent_block *eb = in ocfs2_validate_extent_block() local
892 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &eb->h_check); in ocfs2_validate_extent_block()
903 if (!OCFS2_IS_VALID_EXTENT_BLOCK(eb)) { in ocfs2_validate_extent_block()
907 eb->h_signature); in ocfs2_validate_extent_block()
911 if (le64_to_cpu(eb->h_blkno) != bh->b_blocknr) { in ocfs2_validate_extent_block()
915 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_validate_extent_block()
919 if (le32_to_cpu(eb->h_fs_generation) != OCFS2_SB(sb)->fs_generation) in ocfs2_validate_extent_block()
923 le32_to_cpu(eb->h_fs_generation)); in ocfs2_validate_extent_block()
952 struct ocfs2_extent_block *eb; in ocfs2_num_free_extents() local
966 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_num_free_extents()
967 el = &eb->h_list; in ocfs2_num_free_extents()
1004 struct ocfs2_extent_block *eb; in ocfs2_create_new_meta_bhs() local
1038 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs()
1040 strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_create_new_meta_bhs()
1041 eb->h_blkno = cpu_to_le64(first_blkno); in ocfs2_create_new_meta_bhs()
1042 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_create_new_meta_bhs()
1043 eb->h_suballoc_slot = in ocfs2_create_new_meta_bhs()
1045 eb->h_suballoc_loc = cpu_to_le64(suballoc_loc); in ocfs2_create_new_meta_bhs()
1046 eb->h_suballoc_bit = cpu_to_le16(suballoc_bit_start); in ocfs2_create_new_meta_bhs()
1047 eb->h_list.l_count = in ocfs2_create_new_meta_bhs()
1161 struct ocfs2_extent_block *eb; in ocfs2_add_branch() local
1169 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_add_branch()
1170 el = &eb->h_list; in ocfs2_add_branch()
1179 eb = (struct ocfs2_extent_block *)(*last_eb_bh)->b_data; in ocfs2_add_branch()
1180 new_cpos = ocfs2_sum_rightmost_rec(&eb->h_list); in ocfs2_add_branch()
1249 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_add_branch()
1251 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_add_branch()
1252 eb_el = &eb->h_list; in ocfs2_add_branch()
1261 eb->h_next_leaf_blk = 0; in ocfs2_add_branch()
1277 new_last_eb_blk = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1280 next_blkno = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1322 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_add_branch()
1323 eb->h_next_leaf_blk = cpu_to_le64(new_last_eb_blk); in ocfs2_add_branch()
1362 struct ocfs2_extent_block *eb; in ocfs2_shift_tree_depth() local
1383 eb = (struct ocfs2_extent_block *) new_eb_bh->b_data; in ocfs2_shift_tree_depth()
1385 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_shift_tree_depth()
1387 eb_el = &eb->h_list; in ocfs2_shift_tree_depth()
1417 root_el->l_recs[0].e_blkno = eb->h_blkno; in ocfs2_shift_tree_depth()
1426 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_shift_tree_depth()
1461 struct ocfs2_extent_block *eb; in ocfs2_find_branch_target() local
1495 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_branch_target()
1496 el = &eb->h_list; in ocfs2_find_branch_target()
1800 struct ocfs2_extent_block *eb; in __ocfs2_find_path() local
1856 eb = (struct ocfs2_extent_block *) bh->b_data; in __ocfs2_find_path()
1857 el = &eb->h_list; in __ocfs2_find_path()
1920 struct ocfs2_extent_block *eb =(struct ocfs2_extent_block *)bh->b_data; in find_leaf_ins() local
1921 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins()
2543 struct ocfs2_extent_block *eb; in ocfs2_update_edge_lengths() local
2553 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_update_edge_lengths()
2554 BUG_ON(eb->h_next_leaf_blk != 0ULL); in ocfs2_update_edge_lengths()
2556 el = &eb->h_list; in ocfs2_update_edge_lengths()
2582 struct ocfs2_extent_block *eb; in ocfs2_unlink_path() local
2589 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_unlink_path()
2594 el = &eb->h_list; in ocfs2_unlink_path()
2600 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_unlink_path()
2613 ret = ocfs2_cache_extent_block_free(dealloc, eb); in ocfs2_unlink_path()
2631 struct ocfs2_extent_block *eb; in ocfs2_unlink_subtree() local
2633 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2636 if (root_el->l_recs[i].e_blkno == eb->h_blkno) in ocfs2_unlink_subtree()
2644 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_unlink_subtree()
2645 eb->h_next_leaf_blk = 0; in ocfs2_unlink_subtree()
2665 struct ocfs2_extent_block *eb; in ocfs2_rotate_subtree_left() local
2677 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2692 if (eb->h_next_leaf_blk != 0ULL) in ocfs2_rotate_subtree_left()
2709 if (eb->h_next_leaf_blk == 0ULL && in ocfs2_rotate_subtree_left()
2765 if (eb->h_next_leaf_blk == 0ULL) { in ocfs2_rotate_subtree_left()
2787 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_rotate_subtree_left()
2788 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_subtree_left()
3037 struct ocfs2_extent_block *eb; in ocfs2_remove_rightmost_path() local
3091 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_remove_rightmost_path()
3092 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_remove_rightmost_path()
3165 struct ocfs2_extent_block *eb; in ocfs2_rotate_tree_left() local
3197 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_rotate_tree_left()
3198 el = &eb->h_list; in ocfs2_rotate_tree_left()
3199 if (eb->h_next_leaf_blk == 0) { in ocfs2_rotate_tree_left()
3212 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_tree_left()
4376 struct ocfs2_extent_block *eb; in ocfs2_figure_merge_contig_type() local
4404 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4407 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4458 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4461 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4591 struct ocfs2_extent_block *eb; in ocfs2_figure_insert_type() local
4615 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_figure_insert_type()
4616 el = &eb->h_list; in ocfs2_figure_insert_type()
4931 struct ocfs2_extent_block *eb; in ocfs2_split_and_insert() local
4945 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_split_and_insert()
4946 rightmost_el = &eb->h_list; in ocfs2_split_and_insert()
5293 struct ocfs2_extent_block *eb; in ocfs2_split_tree() local
5317 eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; in ocfs2_split_tree()
5318 rightmost_el = &eb->h_list; in ocfs2_split_tree()
5368 struct ocfs2_extent_block *eb; in ocfs2_truncate_rec() local
5397 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_truncate_rec()
5398 if (eb->h_next_leaf_blk == 0) in ocfs2_truncate_rec()
6690 struct ocfs2_extent_block *eb; in ocfs2_reuse_blk_from_dealloc() local
6742 eb = (struct ocfs2_extent_block *) new_eb_bh[i]->b_data; in ocfs2_reuse_blk_from_dealloc()
6747 strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_reuse_blk_from_dealloc()
6748 eb->h_blkno = cpu_to_le64(bf->free_blk); in ocfs2_reuse_blk_from_dealloc()
6749 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_reuse_blk_from_dealloc()
6750 eb->h_suballoc_slot = cpu_to_le16(real_slot); in ocfs2_reuse_blk_from_dealloc()
6751 eb->h_suballoc_loc = cpu_to_le64(bf->free_bg); in ocfs2_reuse_blk_from_dealloc()
6752 eb->h_suballoc_bit = cpu_to_le16(bf->free_bit); in ocfs2_reuse_blk_from_dealloc()
6753 eb->h_list.l_count = in ocfs2_reuse_blk_from_dealloc()
6818 struct ocfs2_extent_block *eb) in ocfs2_cache_extent_block_free() argument
6821 le16_to_cpu(eb->h_suballoc_slot), in ocfs2_cache_extent_block_free()
6822 le64_to_cpu(eb->h_suballoc_loc), in ocfs2_cache_extent_block_free()
6823 le64_to_cpu(eb->h_blkno), in ocfs2_cache_extent_block_free()
6824 le16_to_cpu(eb->h_suballoc_bit)); in ocfs2_cache_extent_block_free()