Lines Matching refs:new_bh
560 struct buffer_head *new_bh = NULL; in ocfs2_create_refcount_tree() local
607 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree()
608 if (!new_bh) { in ocfs2_create_refcount_tree()
613 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree()
615 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree()
623 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree()
638 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree()
685 brelse(new_bh); in ocfs2_create_refcount_tree()
1287 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local
1307 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root()
1308 if (new_bh == NULL) { in ocfs2_expand_inline_ref_root()
1313 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_expand_inline_ref_root()
1315 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_expand_inline_ref_root()
1327 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1329 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_expand_inline_ref_root()
1337 ocfs2_journal_dirty(handle, new_bh); in ocfs2_expand_inline_ref_root()
1354 *ref_leaf_bh = new_bh; in ocfs2_expand_inline_ref_root()
1355 new_bh = NULL; in ocfs2_expand_inline_ref_root()
1357 brelse(new_bh); in ocfs2_expand_inline_ref_root()
1449 struct buffer_head *new_bh, in ocfs2_divide_leaf_refcount_block() argument
1458 (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_divide_leaf_refcount_block()
1527 struct buffer_head *new_bh = NULL; in ocfs2_new_leaf_refcount_block() local
1555 new_bh = sb_getblk(sb, blkno); in ocfs2_new_leaf_refcount_block()
1556 if (new_bh == NULL) { in ocfs2_new_leaf_refcount_block()
1561 ocfs2_set_new_buffer_uptodate(ci, new_bh); in ocfs2_new_leaf_refcount_block()
1563 ret = ocfs2_journal_access_rb(handle, ci, new_bh, in ocfs2_new_leaf_refcount_block()
1571 new_rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_new_leaf_refcount_block()
1585 ret = ocfs2_divide_leaf_refcount_block(ref_leaf_bh, new_bh, &new_cpos); in ocfs2_new_leaf_refcount_block()
1592 ocfs2_journal_dirty(handle, new_bh); in ocfs2_new_leaf_refcount_block()
1597 (unsigned long long)new_bh->b_blocknr, new_cpos); in ocfs2_new_leaf_refcount_block()
1600 ret = ocfs2_insert_extent(handle, &ref_et, new_cpos, new_bh->b_blocknr, in ocfs2_new_leaf_refcount_block()
1606 brelse(new_bh); in ocfs2_new_leaf_refcount_block()
1748 struct buffer_head *new_bh = NULL; in ocfs2_insert_refcount_rec() local
1765 &new_bh); in ocfs2_insert_refcount_rec()
1771 ref_leaf_bh = new_bh; in ocfs2_insert_refcount_rec()
1811 brelse(new_bh); in ocfs2_insert_refcount_rec()
1840 struct buffer_head *new_bh = NULL; in ocfs2_split_refcount_rec() local
1895 &new_bh); in ocfs2_split_refcount_rec()
1901 ref_leaf_bh = new_bh; in ocfs2_split_refcount_rec()
1976 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()