Lines Matching refs:eb
570 struct ocfs2_extent_block *eb);
673 struct ocfs2_extent_block *eb = (struct ocfs2_extent_block *)eb_bh->b_data; in ocfs2_path_insert_eb() local
684 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
887 struct ocfs2_extent_block *eb = in ocfs2_validate_extent_block() local
899 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &eb->h_check); in ocfs2_validate_extent_block()
910 if (!OCFS2_IS_VALID_EXTENT_BLOCK(eb)) { in ocfs2_validate_extent_block()
914 eb->h_signature); in ocfs2_validate_extent_block()
918 if (le64_to_cpu(eb->h_blkno) != bh->b_blocknr) { in ocfs2_validate_extent_block()
923 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_validate_extent_block()
927 if (le32_to_cpu(eb->h_fs_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_extent_block()
932 le32_to_cpu(eb->h_fs_generation)); in ocfs2_validate_extent_block()
964 struct ocfs2_extent_block *eb; in ocfs2_num_free_extents() local
978 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_num_free_extents()
979 el = &eb->h_list; in ocfs2_num_free_extents()
1009 struct ocfs2_extent_block *eb; in ocfs2_create_new_meta_bhs() local
1043 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs()
1045 strcpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_create_new_meta_bhs()
1046 eb->h_blkno = cpu_to_le64(first_blkno); in ocfs2_create_new_meta_bhs()
1047 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_create_new_meta_bhs()
1048 eb->h_suballoc_slot = in ocfs2_create_new_meta_bhs()
1050 eb->h_suballoc_loc = cpu_to_le64(suballoc_loc); in ocfs2_create_new_meta_bhs()
1051 eb->h_suballoc_bit = cpu_to_le16(suballoc_bit_start); in ocfs2_create_new_meta_bhs()
1052 eb->h_list.l_count = in ocfs2_create_new_meta_bhs()
1167 struct ocfs2_extent_block *eb; in ocfs2_add_branch() local
1175 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_add_branch()
1176 el = &eb->h_list; in ocfs2_add_branch()
1185 eb = (struct ocfs2_extent_block *)(*last_eb_bh)->b_data; in ocfs2_add_branch()
1186 new_cpos = ocfs2_sum_rightmost_rec(&eb->h_list); in ocfs2_add_branch()
1235 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_add_branch()
1237 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_add_branch()
1238 eb_el = &eb->h_list; in ocfs2_add_branch()
1247 eb->h_next_leaf_blk = 0; in ocfs2_add_branch()
1263 new_last_eb_blk = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1266 next_blkno = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1308 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_add_branch()
1309 eb->h_next_leaf_blk = cpu_to_le64(new_last_eb_blk); in ocfs2_add_branch()
1348 struct ocfs2_extent_block *eb; in ocfs2_shift_tree_depth() local
1359 eb = (struct ocfs2_extent_block *) new_eb_bh->b_data; in ocfs2_shift_tree_depth()
1361 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_shift_tree_depth()
1363 eb_el = &eb->h_list; in ocfs2_shift_tree_depth()
1393 root_el->l_recs[0].e_blkno = eb->h_blkno; in ocfs2_shift_tree_depth()
1402 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_shift_tree_depth()
1437 struct ocfs2_extent_block *eb; in ocfs2_find_branch_target() local
1476 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_branch_target()
1477 el = &eb->h_list; in ocfs2_find_branch_target()
1783 struct ocfs2_extent_block *eb; in __ocfs2_find_path() local
1833 eb = (struct ocfs2_extent_block *) bh->b_data; in __ocfs2_find_path()
1834 el = &eb->h_list; in __ocfs2_find_path()
1898 struct ocfs2_extent_block *eb =(struct ocfs2_extent_block *)bh->b_data; in find_leaf_ins() local
1899 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins()
2526 struct ocfs2_extent_block *eb; in ocfs2_update_edge_lengths() local
2551 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_update_edge_lengths()
2552 BUG_ON(eb->h_next_leaf_blk != 0ULL); in ocfs2_update_edge_lengths()
2554 el = &eb->h_list; in ocfs2_update_edge_lengths()
2580 struct ocfs2_extent_block *eb; in ocfs2_unlink_path() local
2587 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_unlink_path()
2592 el = &eb->h_list; in ocfs2_unlink_path()
2598 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_unlink_path()
2611 ret = ocfs2_cache_extent_block_free(dealloc, eb); in ocfs2_unlink_path()
2630 struct ocfs2_extent_block *eb; in ocfs2_unlink_subtree() local
2634 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2637 if (root_el->l_recs[i].e_blkno == eb->h_blkno) in ocfs2_unlink_subtree()
2645 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_unlink_subtree()
2646 eb->h_next_leaf_blk = 0; in ocfs2_unlink_subtree()
2666 struct ocfs2_extent_block *eb; in ocfs2_rotate_subtree_left() local
2678 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2693 if (eb->h_next_leaf_blk != 0ULL) in ocfs2_rotate_subtree_left()
2710 if (eb->h_next_leaf_blk == 0ULL && in ocfs2_rotate_subtree_left()
2766 if (eb->h_next_leaf_blk == 0ULL) { in ocfs2_rotate_subtree_left()
2789 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_rotate_subtree_left()
2790 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_subtree_left()
3039 struct ocfs2_extent_block *eb; in ocfs2_remove_rightmost_path() local
3106 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_remove_rightmost_path()
3107 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_remove_rightmost_path()
3156 struct ocfs2_extent_block *eb; in ocfs2_rotate_tree_left() local
3188 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_rotate_tree_left()
3189 el = &eb->h_list; in ocfs2_rotate_tree_left()
3190 if (eb->h_next_leaf_blk == 0) { in ocfs2_rotate_tree_left()
3204 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_tree_left()
4327 struct ocfs2_extent_block *eb; in ocfs2_figure_merge_contig_type() local
4352 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4358 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4407 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4411 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_figure_merge_contig_type()
4539 struct ocfs2_extent_block *eb; in ocfs2_figure_insert_type() local
4563 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_figure_insert_type()
4564 el = &eb->h_list; in ocfs2_figure_insert_type()
4879 struct ocfs2_extent_block *eb; in ocfs2_split_and_insert() local
4893 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_split_and_insert()
4894 rightmost_el = &eb->h_list; in ocfs2_split_and_insert()
5052 struct ocfs2_extent_block *eb; in ocfs2_split_extent() local
5062 eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; in ocfs2_split_extent()
5063 rightmost_el = &eb->h_list; in ocfs2_split_extent()
5247 struct ocfs2_extent_block *eb; in ocfs2_split_tree() local
5271 eb = (struct ocfs2_extent_block *) last_eb_bh->b_data; in ocfs2_split_tree()
5272 rightmost_el = &eb->h_list; in ocfs2_split_tree()
5322 struct ocfs2_extent_block *eb; in ocfs2_truncate_rec() local
5342 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_truncate_rec()
5343 if (eb->h_next_leaf_blk == 0) in ocfs2_truncate_rec()
6577 struct ocfs2_extent_block *eb) in ocfs2_cache_extent_block_free() argument
6580 le16_to_cpu(eb->h_suballoc_slot), in ocfs2_cache_extent_block_free()
6581 le64_to_cpu(eb->h_suballoc_loc), in ocfs2_cache_extent_block_free()
6582 le64_to_cpu(eb->h_blkno), in ocfs2_cache_extent_block_free()
6583 le16_to_cpu(eb->h_suballoc_bit)); in ocfs2_cache_extent_block_free()