Lines Matching refs:new_bh
566 struct buffer_head *new_bh = NULL; in ocfs2_create_refcount_tree() local
613 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree()
614 if (!new_bh) { in ocfs2_create_refcount_tree()
619 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree()
621 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree()
629 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree()
644 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree()
691 brelse(new_bh); in ocfs2_create_refcount_tree()
1293 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local
1313 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root()
1314 if (new_bh == NULL) { in ocfs2_expand_inline_ref_root()
1319 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_expand_inline_ref_root()
1321 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_expand_inline_ref_root()
1333 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1335 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_expand_inline_ref_root()
1343 ocfs2_journal_dirty(handle, new_bh); in ocfs2_expand_inline_ref_root()
1360 *ref_leaf_bh = new_bh; in ocfs2_expand_inline_ref_root()
1361 new_bh = NULL; in ocfs2_expand_inline_ref_root()
1363 brelse(new_bh); in ocfs2_expand_inline_ref_root()
1455 struct buffer_head *new_bh, in ocfs2_divide_leaf_refcount_block() argument
1464 (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_divide_leaf_refcount_block()
1533 struct buffer_head *new_bh = NULL; in ocfs2_new_leaf_refcount_block() local
1561 new_bh = sb_getblk(sb, blkno); in ocfs2_new_leaf_refcount_block()
1562 if (new_bh == NULL) { in ocfs2_new_leaf_refcount_block()
1567 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_new_leaf_refcount_block()
1569 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_new_leaf_refcount_block()
1577 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_new_leaf_refcount_block()
1591 ret = ocfs2_divide_leaf_refcount_block(ref_leaf_bh, new_bh, &new_cpos); in ocfs2_new_leaf_refcount_block()
1598 ocfs2_journal_dirty(handle, new_bh); in ocfs2_new_leaf_refcount_block()
1603 (unsigned long long)new_bh->b_blocknr, new_cpos); in ocfs2_new_leaf_refcount_block()
1606 ret = ocfs2_insert_extent(handle, &ref_et, new_cpos, new_bh->b_blocknr, in ocfs2_new_leaf_refcount_block()
1612 brelse(new_bh); in ocfs2_new_leaf_refcount_block()
1754 struct buffer_head *new_bh = NULL; in ocfs2_insert_refcount_rec() local
1771 &new_bh); in ocfs2_insert_refcount_rec()
1777 ref_leaf_bh = new_bh; in ocfs2_insert_refcount_rec()
1817 brelse(new_bh); in ocfs2_insert_refcount_rec()
1846 struct buffer_head *new_bh = NULL; in ocfs2_split_refcount_rec() local
1901 &new_bh); in ocfs2_split_refcount_rec()
1907 ref_leaf_bh = new_bh; in ocfs2_split_refcount_rec()
1982 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()
4180 struct buffer_head *new_bh = NULL; in __ocfs2_reflink() local
4201 ret = ocfs2_inode_lock_nested(new_inode, &new_bh, 1, in __ocfs2_reflink()
4209 new_inode, new_bh, preserve); in __ocfs2_reflink()
4217 new_inode, new_bh, in __ocfs2_reflink()
4226 new_inode, new_bh, preserve); in __ocfs2_reflink()
4232 brelse(new_bh); in __ocfs2_reflink()