Lines Matching refs:new_bh

558 	struct buffer_head *new_bh = NULL;  in ocfs2_create_refcount_tree()  local
605 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree()
606 if (!new_bh) { in ocfs2_create_refcount_tree()
611 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree()
613 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree()
621 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree()
636 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree()
683 brelse(new_bh); in ocfs2_create_refcount_tree()
1285 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local
1305 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root()
1306 if (new_bh == NULL) { in ocfs2_expand_inline_ref_root()
1311 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_expand_inline_ref_root()
1313 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_expand_inline_ref_root()
1325 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1327 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_expand_inline_ref_root()
1335 ocfs2_journal_dirty(handle, new_bh); in ocfs2_expand_inline_ref_root()
1352 *ref_leaf_bh = new_bh; in ocfs2_expand_inline_ref_root()
1353 new_bh = NULL; in ocfs2_expand_inline_ref_root()
1355 brelse(new_bh); in ocfs2_expand_inline_ref_root()
1447 struct buffer_head *new_bh, in ocfs2_divide_leaf_refcount_block() argument
1456 (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_divide_leaf_refcount_block()
1525 struct buffer_head *new_bh = NULL; in ocfs2_new_leaf_refcount_block() local
1553 new_bh = sb_getblk(sb, blkno); in ocfs2_new_leaf_refcount_block()
1554 if (new_bh == NULL) { in ocfs2_new_leaf_refcount_block()
1559 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_new_leaf_refcount_block()
1561 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_new_leaf_refcount_block()
1569 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_new_leaf_refcount_block()
1583 ret = ocfs2_divide_leaf_refcount_block(ref_leaf_bh, new_bh, &new_cpos); in ocfs2_new_leaf_refcount_block()
1590 ocfs2_journal_dirty(handle, new_bh); in ocfs2_new_leaf_refcount_block()
1595 (unsigned long long)new_bh->b_blocknr, new_cpos); in ocfs2_new_leaf_refcount_block()
1598 ret = ocfs2_insert_extent(handle, &ref_et, new_cpos, new_bh->b_blocknr, in ocfs2_new_leaf_refcount_block()
1604 brelse(new_bh); in ocfs2_new_leaf_refcount_block()
1746 struct buffer_head *new_bh = NULL; in ocfs2_insert_refcount_rec() local
1763 &new_bh); in ocfs2_insert_refcount_rec()
1769 ref_leaf_bh = new_bh; in ocfs2_insert_refcount_rec()
1809 brelse(new_bh); in ocfs2_insert_refcount_rec()
1838 struct buffer_head *new_bh = NULL; in ocfs2_split_refcount_rec() local
1893 &new_bh); in ocfs2_split_refcount_rec()
1899 ref_leaf_bh = new_bh; in ocfs2_split_refcount_rec()
1974 brelse(new_bh); in ocfs2_split_refcount_rec()
3013 struct buffer_head *new_bh = NULL; in ocfs2_duplicate_clusters_by_jbd() local
3019 new_bh = sb_getblk(osb->sb, new_block); in ocfs2_duplicate_clusters_by_jbd()
3020 if (new_bh == NULL) { in ocfs2_duplicate_clusters_by_jbd()
3026 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_duplicate_clusters_by_jbd()
3034 ret = ocfs2_journal_access(handle, ci, new_bh, in ocfs2_duplicate_clusters_by_jbd()
3041 memcpy(new_bh->b_data, old_bh->b_data, sb->s_blocksize); in ocfs2_duplicate_clusters_by_jbd()
3042 ocfs2_journal_dirty(handle, new_bh); in ocfs2_duplicate_clusters_by_jbd()
3044 brelse(new_bh); in ocfs2_duplicate_clusters_by_jbd()
3046 new_bh = NULL; in ocfs2_duplicate_clusters_by_jbd()
3050 brelse(new_bh); in ocfs2_duplicate_clusters_by_jbd()
4186 struct buffer_head *new_bh = NULL; in __ocfs2_reflink() local
4207 ret = ocfs2_inode_lock_nested(new_inode, &new_bh, 1, in __ocfs2_reflink()
4215 new_inode, new_bh, preserve); in __ocfs2_reflink()
4223 new_inode, new_bh, in __ocfs2_reflink()
4232 new_inode, new_bh, preserve); in __ocfs2_reflink()
4238 brelse(new_bh); in __ocfs2_reflink()