Lines Matching refs:bh

438 				     struct buffer_head *bh,  in __ocfs2_init_extent_tree()  argument
444 et->et_root_bh = bh; in __ocfs2_init_extent_tree()
448 obj = (void *)bh->b_data; in __ocfs2_init_extent_tree()
460 struct buffer_head *bh) in ocfs2_init_dinode_extent_tree() argument
462 __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_di, in ocfs2_init_dinode_extent_tree()
468 struct buffer_head *bh) in ocfs2_init_xattr_tree_extent_tree() argument
470 __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_xb, in ocfs2_init_xattr_tree_extent_tree()
484 struct buffer_head *bh) in ocfs2_init_dx_root_extent_tree() argument
486 __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_dr, in ocfs2_init_dx_root_extent_tree()
492 struct buffer_head *bh) in ocfs2_init_refcount_extent_tree() argument
494 __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_rb, in ocfs2_init_refcount_extent_tree()
591 brelse(node->bh); in ocfs2_reinit_path()
592 node->bh = NULL; in ocfs2_reinit_path()
635 dest->p_node[i].bh = src->p_node[i].bh; in ocfs2_cp_path()
638 if (dest->p_node[i].bh) in ocfs2_cp_path()
639 get_bh(dest->p_node[i].bh); in ocfs2_cp_path()
655 brelse(dest->p_node[i].bh); in ocfs2_mv_path()
657 dest->p_node[i].bh = src->p_node[i].bh; in ocfs2_mv_path()
660 src->p_node[i].bh = NULL; in ocfs2_mv_path()
683 path->p_node[index].bh = eb_bh; in ocfs2_path_insert_eb()
739 return access(handle, ci, path->p_node[idx].bh, in ocfs2_path_bh_journal_access()
884 struct buffer_head *bh) in ocfs2_validate_extent_block() argument
888 (struct ocfs2_extent_block *)bh->b_data; in ocfs2_validate_extent_block()
890 trace_ocfs2_validate_extent_block((unsigned long long)bh->b_blocknr); in ocfs2_validate_extent_block()
892 BUG_ON(!buffer_uptodate(bh)); in ocfs2_validate_extent_block()
899 rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &eb->h_check); in ocfs2_validate_extent_block()
902 (unsigned long long)bh->b_blocknr); in ocfs2_validate_extent_block()
913 (unsigned long long)bh->b_blocknr, 7, in ocfs2_validate_extent_block()
918 if (le64_to_cpu(eb->h_blkno) != bh->b_blocknr) { in ocfs2_validate_extent_block()
921 (unsigned long long)bh->b_blocknr, in ocfs2_validate_extent_block()
929 (unsigned long long)bh->b_blocknr, in ocfs2_validate_extent_block()
938 struct buffer_head **bh) in ocfs2_read_extent_block() argument
941 struct buffer_head *tmp = *bh; in ocfs2_read_extent_block()
947 if (!rc && !*bh) in ocfs2_read_extent_block()
948 *bh = tmp; in ocfs2_read_extent_block()
1163 struct buffer_head *bh; in ocfs2_add_branch() local
1232 bh = new_eb_bhs[i]; in ocfs2_add_branch()
1233 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_add_branch()
1238 status = ocfs2_journal_access_eb(handle, et->et_ci, bh, in ocfs2_add_branch()
1263 ocfs2_journal_dirty(handle, bh); in ocfs2_add_branch()
1437 struct buffer_head *bh = NULL; in ocfs2_find_branch_target() local
1462 brelse(bh); in ocfs2_find_branch_target()
1463 bh = NULL; in ocfs2_find_branch_target()
1465 status = ocfs2_read_extent_block(et->et_ci, blkno, &bh); in ocfs2_find_branch_target()
1471 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_branch_target()
1477 lowest_bh = bh; in ocfs2_find_branch_target()
1490 brelse(bh); in ocfs2_find_branch_target()
1512 struct buffer_head *bh = NULL; in ocfs2_grow_tree() local
1516 shift = ocfs2_find_branch_target(et, &bh); in ocfs2_grow_tree()
1527 BUG_ON(bh); in ocfs2_grow_tree()
1536 ret = ocfs2_shift_tree_depth(handle, et, meta_ac, &bh); in ocfs2_grow_tree()
1553 get_bh(bh); in ocfs2_grow_tree()
1554 *last_eb_bh = bh; in ocfs2_grow_tree()
1561 ret = ocfs2_add_branch(handle, et, bh, last_eb_bh, in ocfs2_grow_tree()
1571 brelse(bh); in ocfs2_grow_tree()
1756 } while (left->p_node[i].bh->b_blocknr == in ocfs2_find_subtree_root()
1757 right->p_node[i].bh->b_blocknr); in ocfs2_find_subtree_root()
1777 struct buffer_head *bh = NULL; in __ocfs2_find_path() local
1818 brelse(bh); in __ocfs2_find_path()
1819 bh = NULL; in __ocfs2_find_path()
1820 ret = ocfs2_read_extent_block(ci, blkno, &bh); in __ocfs2_find_path()
1826 eb = (struct ocfs2_extent_block *) bh->b_data; in __ocfs2_find_path()
1834 (unsigned long long)bh->b_blocknr, in __ocfs2_find_path()
1842 func(data, bh); in __ocfs2_find_path()
1849 brelse(bh); in __ocfs2_find_path()
1869 static void find_path_ins(void *data, struct buffer_head *bh) in find_path_ins() argument
1873 get_bh(bh); in find_path_ins()
1874 ocfs2_path_insert_eb(fp->path, fp->index, bh); in find_path_ins()
1888 static void find_leaf_ins(void *data, struct buffer_head *bh) in find_leaf_ins() argument
1890 struct ocfs2_extent_block *eb =(struct ocfs2_extent_block *)bh->b_data; in find_leaf_ins()
1896 get_bh(bh); in find_leaf_ins()
1897 *ret = bh; in find_leaf_ins()
1914 struct buffer_head *bh = NULL; in ocfs2_find_leaf() local
1916 ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh); in ocfs2_find_leaf()
1922 *leaf_bh = bh; in ocfs2_find_leaf()
2030 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh; in ocfs2_complete_edge_insert()
2065 ocfs2_journal_dirty(handle, left_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2066 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2086 left_path->p_node[subtree_index + 1].bh->b_blocknr); in ocfs2_complete_edge_insert()
2088 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_complete_edge_insert()
2125 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_right()
2126 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2256 blkno = path->p_node[i].bh->b_blocknr; in ocfs2_find_cpos_for_left_leaf()
2453 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2558 ocfs2_journal_dirty(handle, path->p_node[i].bh); in ocfs2_update_edge_lengths()
2572 struct buffer_head *bh; in ocfs2_unlink_path() local
2575 bh = path->p_node[i].bh; in ocfs2_unlink_path()
2577 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_unlink_path()
2591 ocfs2_journal_dirty(handle, bh); in ocfs2_unlink_path()
2592 ocfs2_remove_from_cache(et->et_ci, bh); in ocfs2_unlink_path()
2599 ocfs2_journal_dirty(handle, bh); in ocfs2_unlink_path()
2605 ocfs2_remove_from_cache(et->et_ci, bh); in ocfs2_unlink_path()
2617 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh; in ocfs2_unlink_subtree()
2624 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2662 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_left()
2663 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2871 blkno = path->p_node[i].bh->b_blocknr; in ocfs2_find_cpos_for_right_leaf()
2884 struct buffer_head *bh = path_leaf_bh(path); in ocfs2_rotate_rightmost_leaf_left() local
2898 ocfs2_journal_dirty(handle, bh); in ocfs2_rotate_rightmost_leaf_left()
2956 right_path->p_node[subtree_root].bh->b_blocknr, in __ocfs2_rotate_tree_left()
3375 struct buffer_head *bh = path_leaf_bh(left_path); in ocfs2_merge_rec_right() local
3414 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_right()
3415 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3463 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_right()
3539 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left() local
3576 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_left()
3577 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3633 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_left()
3932 struct buffer_head *bh; in ocfs2_adjust_rightmost_records() local
3940 bh = path->p_node[i].bh; in ocfs2_adjust_rightmost_records()
3960 ocfs2_journal_dirty(handle, bh); in ocfs2_adjust_rightmost_records()
4340 struct buffer_head *bh; in ocfs2_figure_merge_contig_type() local
4368 bh = path_leaf_bh(left_path); in ocfs2_figure_merge_contig_type()
4369 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4423 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4424 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4561 struct buffer_head *bh = NULL; in ocfs2_figure_insert_type() local
4577 &bh); in ocfs2_figure_insert_type()
4582 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_figure_insert_type()
4670 *last_eb_bh = bh; in ocfs2_figure_insert_type()
4672 brelse(bh); in ocfs2_figure_insert_type()
6094 struct buffer_head *bh = NULL; in ocfs2_get_truncate_log_info() local
6105 status = ocfs2_read_inode_block(inode, &bh); in ocfs2_get_truncate_log_info()
6113 *tl_bh = bh; in ocfs2_get_truncate_log_info()
6604 static int ocfs2_zero_func(handle_t *handle, struct buffer_head *bh) in ocfs2_zero_func() argument
6606 set_buffer_uptodate(bh); in ocfs2_zero_func()
6607 mark_buffer_dirty(bh); in ocfs2_zero_func()