Lines Matching refs:new_tree
562 struct ocfs2_refcount_tree *new_tree = NULL, *tree = NULL; in ocfs2_create_refcount_tree() local
600 new_tree = ocfs2_allocate_refcount_tree(osb, first_blkno); in ocfs2_create_refcount_tree()
601 if (!new_tree) { 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()
654 new_tree->rf_generation = le32_to_cpu(rb->rf_generation); in ocfs2_create_refcount_tree()
655 ocfs2_init_refcount_tree_lock(osb, new_tree, first_blkno, in ocfs2_create_refcount_tree()
656 new_tree->rf_generation); in ocfs2_create_refcount_tree()
667 BUG_ON(tree && tree->rf_generation == new_tree->rf_generation); in ocfs2_create_refcount_tree()
670 ocfs2_insert_refcount_tree(osb, new_tree); in ocfs2_create_refcount_tree()
672 new_tree = NULL; in ocfs2_create_refcount_tree()
680 if (new_tree) { in ocfs2_create_refcount_tree()
681 ocfs2_metadata_cache_exit(&new_tree->rf_ci); in ocfs2_create_refcount_tree()
682 kfree(new_tree); in ocfs2_create_refcount_tree()