Lines Matching refs:new_tree
560 struct ocfs2_refcount_tree *new_tree = NULL, *tree = NULL; in ocfs2_create_refcount_tree() local
598 new_tree = ocfs2_allocate_refcount_tree(osb, first_blkno); in ocfs2_create_refcount_tree()
599 if (!new_tree) { 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()
652 new_tree->rf_generation = le32_to_cpu(rb->rf_generation); in ocfs2_create_refcount_tree()
653 ocfs2_init_refcount_tree_lock(osb, new_tree, first_blkno, in ocfs2_create_refcount_tree()
654 new_tree->rf_generation); in ocfs2_create_refcount_tree()
665 BUG_ON(tree && tree->rf_generation == new_tree->rf_generation); in ocfs2_create_refcount_tree()
668 ocfs2_insert_refcount_tree(osb, new_tree); in ocfs2_create_refcount_tree()
670 new_tree = NULL; in ocfs2_create_refcount_tree()
678 if (new_tree) { in ocfs2_create_refcount_tree()
679 ocfs2_metadata_cache_exit(&new_tree->rf_ci); in ocfs2_create_refcount_tree()
680 kfree(new_tree); in ocfs2_create_refcount_tree()