Lines Matching refs:eb

564 					 struct ocfs2_extent_block *eb);
667 struct ocfs2_extent_block *eb = (struct ocfs2_extent_block *)eb_bh->b_data; in ocfs2_path_insert_eb() local
678 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
881 struct ocfs2_extent_block *eb = in ocfs2_validate_extent_block() local
893 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &eb->h_check); in ocfs2_validate_extent_block()
904 if (!OCFS2_IS_VALID_EXTENT_BLOCK(eb)) { in ocfs2_validate_extent_block()
908 eb->h_signature); in ocfs2_validate_extent_block()
912 if (le64_to_cpu(eb->h_blkno) != bh->b_blocknr) { in ocfs2_validate_extent_block()
916 (unsigned long long)le64_to_cpu(eb->h_blkno)); in ocfs2_validate_extent_block()
920 if (le32_to_cpu(eb->h_fs_generation) != OCFS2_SB(sb)->fs_generation) in ocfs2_validate_extent_block()
924 le32_to_cpu(eb->h_fs_generation)); in ocfs2_validate_extent_block()
953 struct ocfs2_extent_block *eb; in ocfs2_num_free_extents() local
967 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_num_free_extents()
968 el = &eb->h_list; in ocfs2_num_free_extents()
1005 struct ocfs2_extent_block *eb; in ocfs2_create_new_meta_bhs() local
1039 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs()
1041 strscpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_create_new_meta_bhs()
1042 eb->h_blkno = cpu_to_le64(first_blkno); in ocfs2_create_new_meta_bhs()
1043 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_create_new_meta_bhs()
1044 eb->h_suballoc_slot = in ocfs2_create_new_meta_bhs()
1046 eb->h_suballoc_loc = cpu_to_le64(suballoc_loc); in ocfs2_create_new_meta_bhs()
1047 eb->h_suballoc_bit = cpu_to_le16(suballoc_bit_start); in ocfs2_create_new_meta_bhs()
1048 eb->h_list.l_count = in ocfs2_create_new_meta_bhs()
1162 struct ocfs2_extent_block *eb; in ocfs2_add_branch() local
1170 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_add_branch()
1171 el = &eb->h_list; in ocfs2_add_branch()
1180 eb = (struct ocfs2_extent_block *)(*last_eb_bh)->b_data; in ocfs2_add_branch()
1181 new_cpos = ocfs2_sum_rightmost_rec(&eb->h_list); in ocfs2_add_branch()
1250 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_add_branch()
1252 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_add_branch()
1253 eb_el = &eb->h_list; in ocfs2_add_branch()
1262 eb->h_next_leaf_blk = 0; in ocfs2_add_branch()
1278 new_last_eb_blk = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1281 next_blkno = le64_to_cpu(eb->h_blkno); in ocfs2_add_branch()
1323 eb = (struct ocfs2_extent_block *) (*last_eb_bh)->b_data; in ocfs2_add_branch()
1324 eb->h_next_leaf_blk = cpu_to_le64(new_last_eb_blk); in ocfs2_add_branch()
1363 struct ocfs2_extent_block *eb; in ocfs2_shift_tree_depth() local
1384 eb = (struct ocfs2_extent_block *) new_eb_bh->b_data; in ocfs2_shift_tree_depth()
1386 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_shift_tree_depth()
1388 eb_el = &eb->h_list; in ocfs2_shift_tree_depth()
1418 root_el->l_recs[0].e_blkno = eb->h_blkno; in ocfs2_shift_tree_depth()
1427 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_shift_tree_depth()
1462 struct ocfs2_extent_block *eb; in ocfs2_find_branch_target() local
1496 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_branch_target()
1497 el = &eb->h_list; in ocfs2_find_branch_target()
1801 struct ocfs2_extent_block *eb; in __ocfs2_find_path() local
1857 eb = (struct ocfs2_extent_block *) bh->b_data; in __ocfs2_find_path()
1858 el = &eb->h_list; in __ocfs2_find_path()
1921 struct ocfs2_extent_block *eb =(struct ocfs2_extent_block *)bh->b_data; in find_leaf_ins() local
1922 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins()
2544 struct ocfs2_extent_block *eb; in ocfs2_update_edge_lengths() local
2554 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_update_edge_lengths()
2555 BUG_ON(eb->h_next_leaf_blk != 0ULL); in ocfs2_update_edge_lengths()
2557 el = &eb->h_list; in ocfs2_update_edge_lengths()
2583 struct ocfs2_extent_block *eb; in ocfs2_unlink_path() local
2590 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_unlink_path()
2595 el = &eb->h_list; in ocfs2_unlink_path()
2601 (unsigned long long)le64_to_cpu(eb->h_blkno), in ocfs2_unlink_path()
2614 ret = ocfs2_cache_extent_block_free(dealloc, eb); in ocfs2_unlink_path()
2632 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()
2788 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_rotate_subtree_left()
2789 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_rotate_subtree_left()
3038 struct ocfs2_extent_block *eb; in ocfs2_remove_rightmost_path() local
3092 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_remove_rightmost_path()
3093 ocfs2_et_set_last_eb_blk(et, le64_to_cpu(eb->h_blkno)); in ocfs2_remove_rightmost_path()
3166 struct ocfs2_extent_block *eb; in ocfs2_rotate_tree_left() local
3198 eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; in ocfs2_rotate_tree_left()
3199 el = &eb->h_list; in ocfs2_rotate_tree_left()
3200 if (eb->h_next_leaf_blk == 0) { in ocfs2_rotate_tree_left()
3213 (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()
6692 struct ocfs2_extent_block *eb; in ocfs2_reuse_blk_from_dealloc() local
6744 eb = (struct ocfs2_extent_block *) new_eb_bh[i]->b_data; in ocfs2_reuse_blk_from_dealloc()
6749 strscpy(eb->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE); in ocfs2_reuse_blk_from_dealloc()
6750 eb->h_blkno = cpu_to_le64(bf->free_blk); in ocfs2_reuse_blk_from_dealloc()
6751 eb->h_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_reuse_blk_from_dealloc()
6752 eb->h_suballoc_slot = cpu_to_le16(real_slot); in ocfs2_reuse_blk_from_dealloc()
6753 eb->h_suballoc_loc = cpu_to_le64(bf->free_bg); in ocfs2_reuse_blk_from_dealloc()
6754 eb->h_suballoc_bit = cpu_to_le16(bf->free_bit); in ocfs2_reuse_blk_from_dealloc()
6755 eb->h_list.l_count = in ocfs2_reuse_blk_from_dealloc()
6820 struct ocfs2_extent_block *eb) in ocfs2_cache_extent_block_free() argument
6823 le16_to_cpu(eb->h_suballoc_slot), in ocfs2_cache_extent_block_free()
6824 le64_to_cpu(eb->h_suballoc_loc), in ocfs2_cache_extent_block_free()
6825 le64_to_cpu(eb->h_blkno), in ocfs2_cache_extent_block_free()
6826 le16_to_cpu(eb->h_suballoc_bit)); in ocfs2_cache_extent_block_free()