Lines Matching refs:new_bh

559 	struct buffer_head *new_bh = NULL;  in ocfs2_create_refcount_tree()  local
606 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree()
607 if (!new_bh) { in ocfs2_create_refcount_tree()
612 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree()
614 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree()
622 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree()
637 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree()
684 brelse(new_bh); in ocfs2_create_refcount_tree()
1286 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local
1306 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root()
1307 if (new_bh == NULL) { in ocfs2_expand_inline_ref_root()
1312 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_expand_inline_ref_root()
1314 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_expand_inline_ref_root()
1326 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1328 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_expand_inline_ref_root()
1336 ocfs2_journal_dirty(handle, new_bh); in ocfs2_expand_inline_ref_root()
1353 *ref_leaf_bh = new_bh; in ocfs2_expand_inline_ref_root()
1354 new_bh = NULL; in ocfs2_expand_inline_ref_root()
1356 brelse(new_bh); in ocfs2_expand_inline_ref_root()
1441 struct buffer_head *new_bh, in ocfs2_divide_leaf_refcount_block() argument
1450 (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_divide_leaf_refcount_block()
1519 struct buffer_head *new_bh = NULL; in ocfs2_new_leaf_refcount_block() local
1547 new_bh = sb_getblk(sb, blkno); in ocfs2_new_leaf_refcount_block()
1548 if (new_bh == NULL) { in ocfs2_new_leaf_refcount_block()
1553 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_new_leaf_refcount_block()
1555 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_new_leaf_refcount_block()
1563 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_new_leaf_refcount_block()
1577 ret = ocfs2_divide_leaf_refcount_block(ref_leaf_bh, new_bh, &new_cpos); in ocfs2_new_leaf_refcount_block()
1584 ocfs2_journal_dirty(handle, new_bh); in ocfs2_new_leaf_refcount_block()
1589 (unsigned long long)new_bh->b_blocknr, new_cpos); in ocfs2_new_leaf_refcount_block()
1592 ret = ocfs2_insert_extent(handle, &ref_et, new_cpos, new_bh->b_blocknr, in ocfs2_new_leaf_refcount_block()
1598 brelse(new_bh); in ocfs2_new_leaf_refcount_block()
1740 struct buffer_head *new_bh = NULL; in ocfs2_insert_refcount_rec() local
1757 &new_bh); in ocfs2_insert_refcount_rec()
1763 ref_leaf_bh = new_bh; in ocfs2_insert_refcount_rec()
1803 brelse(new_bh); in ocfs2_insert_refcount_rec()
1832 struct buffer_head *new_bh = NULL; in ocfs2_split_refcount_rec() local
1887 &new_bh); in ocfs2_split_refcount_rec()
1893 ref_leaf_bh = new_bh; in ocfs2_split_refcount_rec()
1968 brelse(new_bh); in ocfs2_split_refcount_rec()
3008 struct buffer_head *new_bh = NULL; in ocfs2_duplicate_clusters_by_jbd() local
3014 new_bh = sb_getblk(osb->sb, new_block); in ocfs2_duplicate_clusters_by_jbd()
3015 if (new_bh == NULL) { in ocfs2_duplicate_clusters_by_jbd()
3021 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_duplicate_clusters_by_jbd()
3029 ret = ocfs2_journal_access(handle, ci, new_bh, in ocfs2_duplicate_clusters_by_jbd()
3036 memcpy(new_bh->b_data, old_bh->b_data, sb->s_blocksize); in ocfs2_duplicate_clusters_by_jbd()
3037 ocfs2_journal_dirty(handle, new_bh); in ocfs2_duplicate_clusters_by_jbd()
3039 brelse(new_bh); in ocfs2_duplicate_clusters_by_jbd()
3041 new_bh = NULL; in ocfs2_duplicate_clusters_by_jbd()
3045 brelse(new_bh); in ocfs2_duplicate_clusters_by_jbd()
4151 struct buffer_head *new_bh = NULL; in __ocfs2_reflink() local
4173 ret = ocfs2_inode_lock_nested(new_inode, &new_bh, 1, in __ocfs2_reflink()
4190 struct ocfs2_dinode *new_di = (struct ocfs2_dinode *)new_bh->b_data; in __ocfs2_reflink()
4201 new_inode, new_bh, preserve); in __ocfs2_reflink()
4209 new_inode, new_bh, in __ocfs2_reflink()
4218 new_inode, new_bh, preserve); in __ocfs2_reflink()
4224 brelse(new_bh); in __ocfs2_reflink()