Lines Matching refs:new_bh

568 	struct buffer_head *new_bh = NULL;  in ocfs2_create_refcount_tree()  local
615 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree()
616 if (!new_bh) { in ocfs2_create_refcount_tree()
621 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree()
623 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree()
631 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree()
646 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree()
693 brelse(new_bh); in ocfs2_create_refcount_tree()
1297 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local
1317 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root()
1318 if (new_bh == NULL) { in ocfs2_expand_inline_ref_root()
1323 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_expand_inline_ref_root()
1325 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_expand_inline_ref_root()
1337 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1339 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_expand_inline_ref_root()
1347 ocfs2_journal_dirty(handle, new_bh); in ocfs2_expand_inline_ref_root()
1364 *ref_leaf_bh = new_bh; in ocfs2_expand_inline_ref_root()
1365 new_bh = NULL; in ocfs2_expand_inline_ref_root()
1367 brelse(new_bh); in ocfs2_expand_inline_ref_root()
1461 struct buffer_head *new_bh, in ocfs2_divide_leaf_refcount_block() argument
1470 (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_divide_leaf_refcount_block()
1539 struct buffer_head *new_bh = NULL; in ocfs2_new_leaf_refcount_block() local
1567 new_bh = sb_getblk(sb, blkno); in ocfs2_new_leaf_refcount_block()
1568 if (new_bh == NULL) { in ocfs2_new_leaf_refcount_block()
1573 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_new_leaf_refcount_block()
1575 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_new_leaf_refcount_block()
1583 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_new_leaf_refcount_block()
1597 ret = ocfs2_divide_leaf_refcount_block(ref_leaf_bh, new_bh, &new_cpos); in ocfs2_new_leaf_refcount_block()
1604 ocfs2_journal_dirty(handle, new_bh); in ocfs2_new_leaf_refcount_block()
1609 (unsigned long long)new_bh->b_blocknr, new_cpos); in ocfs2_new_leaf_refcount_block()
1612 ret = ocfs2_insert_extent(handle, &ref_et, new_cpos, new_bh->b_blocknr, in ocfs2_new_leaf_refcount_block()
1618 brelse(new_bh); in ocfs2_new_leaf_refcount_block()
1760 struct buffer_head *new_bh = NULL; in ocfs2_insert_refcount_rec() local
1777 &new_bh); in ocfs2_insert_refcount_rec()
1783 ref_leaf_bh = new_bh; in ocfs2_insert_refcount_rec()
1823 brelse(new_bh); in ocfs2_insert_refcount_rec()
1852 struct buffer_head *new_bh = NULL; in ocfs2_split_refcount_rec() local
1907 &new_bh); in ocfs2_split_refcount_rec()
1913 ref_leaf_bh = new_bh; in ocfs2_split_refcount_rec()
1988 brelse(new_bh); in ocfs2_split_refcount_rec()
3027 struct buffer_head *new_bh = NULL; in ocfs2_duplicate_clusters_by_jbd() local
3033 new_bh = sb_getblk(osb->sb, new_block); in ocfs2_duplicate_clusters_by_jbd()
3034 if (new_bh == NULL) { in ocfs2_duplicate_clusters_by_jbd()
3040 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_duplicate_clusters_by_jbd()
3048 ret = ocfs2_journal_access(handle, ci, new_bh, in ocfs2_duplicate_clusters_by_jbd()
3055 memcpy(new_bh->b_data, old_bh->b_data, sb->s_blocksize); in ocfs2_duplicate_clusters_by_jbd()
3056 ocfs2_journal_dirty(handle, new_bh); in ocfs2_duplicate_clusters_by_jbd()
3058 brelse(new_bh); in ocfs2_duplicate_clusters_by_jbd()
3060 new_bh = NULL; in ocfs2_duplicate_clusters_by_jbd()
3064 brelse(new_bh); in ocfs2_duplicate_clusters_by_jbd()
4198 struct buffer_head *new_bh = NULL; in __ocfs2_reflink() local
4219 ret = ocfs2_inode_lock_nested(new_inode, &new_bh, 1, in __ocfs2_reflink()
4227 new_inode, new_bh, preserve); in __ocfs2_reflink()
4235 new_inode, new_bh, in __ocfs2_reflink()
4244 new_inode, new_bh, preserve); in __ocfs2_reflink()
4250 brelse(new_bh); in __ocfs2_reflink()