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()
922 (unsigned long long)bh->b_blocknr, in ocfs2_validate_extent_block()
931 (unsigned long long)bh->b_blocknr, in ocfs2_validate_extent_block()
940 struct buffer_head **bh) in ocfs2_read_extent_block() argument
943 struct buffer_head *tmp = *bh; in ocfs2_read_extent_block()
949 if (!rc && !*bh) in ocfs2_read_extent_block()
950 *bh = tmp; in ocfs2_read_extent_block()
1165 struct buffer_head *bh; in ocfs2_add_branch() local
1234 bh = new_eb_bhs[i]; in ocfs2_add_branch()
1235 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_add_branch()
1240 status = ocfs2_journal_access_eb(handle, et->et_ci, bh, in ocfs2_add_branch()
1265 ocfs2_journal_dirty(handle, bh); in ocfs2_add_branch()
1439 struct buffer_head *bh = NULL; in ocfs2_find_branch_target() local
1467 brelse(bh); in ocfs2_find_branch_target()
1468 bh = NULL; in ocfs2_find_branch_target()
1470 status = ocfs2_read_extent_block(et->et_ci, blkno, &bh); in ocfs2_find_branch_target()
1476 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_find_branch_target()
1482 lowest_bh = bh; in ocfs2_find_branch_target()
1495 brelse(bh); in ocfs2_find_branch_target()
1517 struct buffer_head *bh = NULL; in ocfs2_grow_tree() local
1521 shift = ocfs2_find_branch_target(et, &bh); in ocfs2_grow_tree()
1532 BUG_ON(bh); in ocfs2_grow_tree()
1541 ret = ocfs2_shift_tree_depth(handle, et, meta_ac, &bh); in ocfs2_grow_tree()
1558 get_bh(bh); in ocfs2_grow_tree()
1559 *last_eb_bh = bh; in ocfs2_grow_tree()
1566 ret = ocfs2_add_branch(handle, et, bh, last_eb_bh, in ocfs2_grow_tree()
1576 brelse(bh); in ocfs2_grow_tree()
1761 } while (left->p_node[i].bh->b_blocknr == in ocfs2_find_subtree_root()
1762 right->p_node[i].bh->b_blocknr); in ocfs2_find_subtree_root()
1782 struct buffer_head *bh = NULL; in __ocfs2_find_path() local
1825 brelse(bh); in __ocfs2_find_path()
1826 bh = NULL; in __ocfs2_find_path()
1827 ret = ocfs2_read_extent_block(ci, blkno, &bh); in __ocfs2_find_path()
1833 eb = (struct ocfs2_extent_block *) bh->b_data; in __ocfs2_find_path()
1842 (unsigned long long)bh->b_blocknr, in __ocfs2_find_path()
1850 func(data, bh); in __ocfs2_find_path()
1857 brelse(bh); in __ocfs2_find_path()
1877 static void find_path_ins(void *data, struct buffer_head *bh) in find_path_ins() argument
1881 get_bh(bh); in find_path_ins()
1882 ocfs2_path_insert_eb(fp->path, fp->index, bh); in find_path_ins()
1896 static void find_leaf_ins(void *data, struct buffer_head *bh) in find_leaf_ins() argument
1898 struct ocfs2_extent_block *eb =(struct ocfs2_extent_block *)bh->b_data; in find_leaf_ins()
1904 get_bh(bh); in find_leaf_ins()
1905 *ret = bh; in find_leaf_ins()
1922 struct buffer_head *bh = NULL; in ocfs2_find_leaf() local
1924 ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh); in ocfs2_find_leaf()
1930 *leaf_bh = bh; in ocfs2_find_leaf()
2038 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh; in ocfs2_complete_edge_insert()
2073 ocfs2_journal_dirty(handle, left_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2074 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2094 left_path->p_node[subtree_index + 1].bh->b_blocknr); in ocfs2_complete_edge_insert()
2096 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_complete_edge_insert()
2134 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_right()
2135 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2266 blkno = path->p_node[i].bh->b_blocknr; in ocfs2_find_cpos_for_left_leaf()
2463 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2568 ocfs2_journal_dirty(handle, path->p_node[i].bh); in ocfs2_update_edge_lengths()
2582 struct buffer_head *bh; in ocfs2_unlink_path() local
2585 bh = path->p_node[i].bh; in ocfs2_unlink_path()
2587 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_unlink_path()
2601 ocfs2_journal_dirty(handle, bh); in ocfs2_unlink_path()
2602 ocfs2_remove_from_cache(et->et_ci, bh); in ocfs2_unlink_path()
2609 ocfs2_journal_dirty(handle, bh); in ocfs2_unlink_path()
2615 ocfs2_remove_from_cache(et->et_ci, bh); in ocfs2_unlink_path()
2627 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh; in ocfs2_unlink_subtree()
2634 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2672 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_left()
2673 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2882 blkno = path->p_node[i].bh->b_blocknr; in ocfs2_find_cpos_for_right_leaf()
2895 struct buffer_head *bh = path_leaf_bh(path); in ocfs2_rotate_rightmost_leaf_left() local
2909 ocfs2_journal_dirty(handle, bh); in ocfs2_rotate_rightmost_leaf_left()
2966 right_path->p_node[subtree_root].bh->b_blocknr, in __ocfs2_rotate_tree_left()
3361 struct buffer_head *bh = path_leaf_bh(left_path); in ocfs2_merge_rec_right() local
3400 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_right()
3401 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3449 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_right()
3525 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left() local
3562 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_left()
3563 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3619 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_left()
3918 struct buffer_head *bh; in ocfs2_adjust_rightmost_records() local
3926 bh = path->p_node[i].bh; in ocfs2_adjust_rightmost_records()
3946 ocfs2_journal_dirty(handle, bh); in ocfs2_adjust_rightmost_records()
4326 struct buffer_head *bh; in ocfs2_figure_merge_contig_type() local
4351 bh = path_leaf_bh(left_path); in ocfs2_figure_merge_contig_type()
4352 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4406 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4407 eb = (struct ocfs2_extent_block *)bh->b_data; in ocfs2_figure_merge_contig_type()
4542 struct buffer_head *bh = NULL; in ocfs2_figure_insert_type() local
4558 &bh); in ocfs2_figure_insert_type()
4563 eb = (struct ocfs2_extent_block *) bh->b_data; in ocfs2_figure_insert_type()
4651 *last_eb_bh = bh; in ocfs2_figure_insert_type()
4653 brelse(bh); in ocfs2_figure_insert_type()
6076 struct buffer_head *bh = NULL; in ocfs2_get_truncate_log_info() local
6087 status = ocfs2_read_inode_block(inode, &bh); in ocfs2_get_truncate_log_info()
6095 *tl_bh = bh; in ocfs2_get_truncate_log_info()
6586 static int ocfs2_zero_func(handle_t *handle, struct buffer_head *bh) in ocfs2_zero_func() argument
6588 set_buffer_uptodate(bh); in ocfs2_zero_func()
6589 mark_buffer_dirty(bh); in ocfs2_zero_func()