Lines Matching refs:new_tree
568 struct ocfs2_refcount_tree *new_tree = NULL, *tree = NULL; in ocfs2_create_refcount_tree() local
606 new_tree = ocfs2_allocate_refcount_tree(osb, first_blkno); in ocfs2_create_refcount_tree()
607 if (!new_tree) { 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()
660 new_tree->rf_generation = le32_to_cpu(rb->rf_generation); in ocfs2_create_refcount_tree()
661 ocfs2_init_refcount_tree_lock(osb, new_tree, first_blkno, in ocfs2_create_refcount_tree()
662 new_tree->rf_generation); in ocfs2_create_refcount_tree()
673 BUG_ON(tree && tree->rf_generation == new_tree->rf_generation); in ocfs2_create_refcount_tree()
676 ocfs2_insert_refcount_tree(osb, new_tree); in ocfs2_create_refcount_tree()
678 new_tree = NULL; in ocfs2_create_refcount_tree()
686 if (new_tree) { in ocfs2_create_refcount_tree()
687 ocfs2_metadata_cache_exit(&new_tree->rf_ci); in ocfs2_create_refcount_tree()
688 kfree(new_tree); in ocfs2_create_refcount_tree()