Lines Matching refs:eb
392 struct ocfs2_extent_block *eb);
519 struct ocfs2_extent_block *eb = (struct ocfs2_extent_block *)eb_bh->b_data; in ocfs2_path_insert_eb() local
530 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
740 struct ocfs2_extent_block *eb = in ocfs2_validate_extent_block() local
753 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &eb->h_check); in ocfs2_validate_extent_block()
764 if (!OCFS2_IS_VALID_EXTENT_BLOCK(eb)) { in ocfs2_validate_extent_block()
768 eb->h_signature); in ocfs2_validate_extent_block()
772 if (le64_to_cpu(eb->h_blkno) != bh->b_blocknr) { in ocfs2_validate_extent_block()
777 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_validate_extent_block()
781 if (le32_to_cpu(eb->h_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_extent_block()
786 le32_to_cpu(eb->h_fs_generation)); in ocfs2_validate_extent_block()
819 struct ocfs2_extent_block *eb; in ocfs2_num_free_extents() local
834 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_num_free_extents()
835 el = &eb->h_list; in ocfs2_num_free_extents()
864 struct ocfs2_extent_block *eb; in ocfs2_create_new_meta_bhs() local
899 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs()
901 strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_create_new_meta_bhs()
902 eb->h_blkno = cpu_to_le64(first_blkno); in ocfs2_create_new_meta_bhs()
903 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_create_new_meta_bhs()
904 eb->h_suballoc_slot = cpu_to_le16(osb->slot_num); in ocfs2_create_new_meta_bhs()
905 eb->h_suballoc_bit = cpu_to_le16(suballoc_bit_start); in ocfs2_create_new_meta_bhs()
906 eb->h_list.l_count = in ocfs2_create_new_meta_bhs()
981 struct ocfs2_extent_block *eb; in ocfs2_add_branch() local
991 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_add_branch()
992 el = &eb->h_list; in ocfs2_add_branch()
1017 eb = (struct ocfs2_extent_block *)(*last_eb_bh)->b_data; in ocfs2_add_branch()
1018 new_cpos = ocfs2_sum_rightmost_rec(&eb->h_list); in ocfs2_add_branch()
1030 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_add_branch()
1032 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_add_branch()
1033 eb_el = &eb->h_list; in ocfs2_add_branch()
1042 eb->h_next_leaf_blk = 0; in ocfs2_add_branch()
1058 new_last_eb_blk = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1066 next_blkno = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1108 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_add_branch()
1109 eb->h_next_leaf_blk = cpu_to_le64(new_last_eb_blk); in ocfs2_add_branch()
1158 struct ocfs2_extent_block *eb; in ocfs2_shift_tree_depth() local
1171 eb = (struct ocfs2_extent_block *) new_eb_bh->b_data; in ocfs2_shift_tree_depth()
1173 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_shift_tree_depth()
1175 eb_el = &eb->h_list; in ocfs2_shift_tree_depth()
1209 root_el->l_recs[0].e_blkno = eb->h_blkno; in ocfs2_shift_tree_depth()
1218 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_shift_tree_depth()
1260 struct ocfs2_extent_block *eb; in ocfs2_find_branch_target() local
1299 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_branch_target()
1300 el = &eb->h_list; in ocfs2_find_branch_target()
1607 struct ocfs2_extent_block *eb; in __ocfs2_find_path() local
1658 eb = (struct ocfs2_extent_block *) bh->b_data; in __ocfs2_find_path()
1659 el = &eb->h_list; in __ocfs2_find_path()
1723 struct ocfs2_extent_block *eb =(struct ocfs2_extent_block *)bh->b_data; in find_leaf_ins() local
1724 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins()
2356 struct ocfs2_extent_block *eb; in ocfs2_update_edge_lengths() local
2360 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_update_edge_lengths()
2361 BUG_ON(eb->h_next_leaf_blk != 0ULL); in ocfs2_update_edge_lengths()
2363 el = &eb->h_list; in ocfs2_update_edge_lengths()
2386 struct ocfs2_extent_block *eb; in ocfs2_unlink_path() local
2393 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_unlink_path()
2398 el = &eb->h_list; in ocfs2_unlink_path()
2404 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_unlink_path()
2417 ret = ocfs2_cache_extent_block_free(dealloc, eb); in ocfs2_unlink_path()
2435 struct ocfs2_extent_block *eb; in ocfs2_unlink_subtree() local
2439 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2442 if (root_el->l_recs[i].e_blkno == eb->h_blkno) in ocfs2_unlink_subtree()
2450 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_unlink_subtree()
2451 eb->h_next_leaf_blk = 0; in ocfs2_unlink_subtree()
2471 struct ocfs2_extent_block *eb; in ocfs2_rotate_subtree_left() local
2483 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2498 if (eb->h_next_leaf_blk != 0ULL) in ocfs2_rotate_subtree_left()
2515 if (eb->h_next_leaf_blk == 0ULL && in ocfs2_rotate_subtree_left()
2571 if (eb->h_next_leaf_blk == 0ULL) { in ocfs2_rotate_subtree_left()
2593 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_rotate_subtree_left()
2594 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_subtree_left()
2849 struct ocfs2_extent_block *eb; in ocfs2_remove_rightmost_path() local
2910 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_remove_rightmost_path()
2911 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_remove_rightmost_path()
2960 struct ocfs2_extent_block *eb; in ocfs2_rotate_tree_left() local
2993 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_rotate_tree_left()
2994 el = &eb->h_list; in ocfs2_rotate_tree_left()
2995 if (eb->h_next_leaf_blk == 0) { in ocfs2_rotate_tree_left()
3009 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_tree_left()
4162 struct ocfs2_extent_block *eb; in ocfs2_figure_merge_contig_type() local
4186 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4192 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4242 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4246 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4377 struct ocfs2_extent_block *eb; in ocfs2_figure_insert_type() local
4401 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_figure_insert_type()
4402 el = &eb->h_list; in ocfs2_figure_insert_type()
4711 struct ocfs2_extent_block *eb; in ocfs2_split_and_insert() local
4725 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_split_and_insert()
4726 rightmost_el = &eb->h_list; in ocfs2_split_and_insert()
4883 struct ocfs2_extent_block *eb; in __ocfs2_mark_extent_written() local
4893 eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; in __ocfs2_mark_extent_written()
4894 rightmost_el = &eb->h_list; in __ocfs2_mark_extent_written()
5025 struct ocfs2_extent_block *eb; in ocfs2_split_tree() local
5048 eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; in ocfs2_split_tree()
5049 rightmost_el = &eb->h_list; in ocfs2_split_tree()
5099 struct ocfs2_extent_block *eb; in ocfs2_truncate_rec() local
5119 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_truncate_rec()
5120 if (eb->h_next_leaf_blk == 0) in ocfs2_truncate_rec()
6276 struct ocfs2_extent_block *eb) in ocfs2_cache_extent_block_free() argument
6279 le16_to_cpu(eb->h_suballoc_slot), in ocfs2_cache_extent_block_free()
6280 le64_to_cpu(eb->h_blkno), in ocfs2_cache_extent_block_free()
6281 le16_to_cpu(eb->h_suballoc_bit)); in ocfs2_cache_extent_block_free()
6296 struct ocfs2_extent_block *eb; in ocfs2_find_new_last_ext_blk() local
6363 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_new_last_ext_blk()
6364 el = &eb->h_list; in ocfs2_find_new_last_ext_blk()
6368 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_find_new_last_ext_blk()
6373 (unsigned long long)le64_to_cpu(eb->h_blkno), cpos); in ocfs2_find_new_last_ext_blk()
6547 struct ocfs2_extent_block *eb = in ocfs2_trim_tree() local
6554 deleted_eb = le64_to_cpu(eb->h_blkno); in ocfs2_trim_tree()
6564 ret = ocfs2_cache_extent_block_free(&tc->tc_dealloc, eb); in ocfs2_trim_tree()
7260 struct ocfs2_extent_block *eb; in ocfs2_prepare_truncate() local
7291 eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; in ocfs2_prepare_truncate()