Lines Matching refs:tm_list

531 	struct tree_mod_elem **tm_list = NULL;  in tree_mod_log_insert_move()  local
539 tm_list = kcalloc(nr_items, sizeof(struct tree_mod_elem *), GFP_NOFS); in tree_mod_log_insert_move()
540 if (!tm_list) in tree_mod_log_insert_move()
556 tm_list[i] = alloc_tree_mod_elem(eb, i + dst_slot, in tree_mod_log_insert_move()
558 if (!tm_list[i]) { in tree_mod_log_insert_move()
574 ret = __tree_mod_log_insert(eb->fs_info, tm_list[i]); in tree_mod_log_insert_move()
583 kfree(tm_list); in tree_mod_log_insert_move()
588 if (tm_list[i] && !RB_EMPTY_NODE(&tm_list[i]->node)) in tree_mod_log_insert_move()
589 rb_erase(&tm_list[i]->node, &eb->fs_info->tree_mod_log); in tree_mod_log_insert_move()
590 kfree(tm_list[i]); in tree_mod_log_insert_move()
594 kfree(tm_list); in tree_mod_log_insert_move()
602 struct tree_mod_elem **tm_list, in __tree_mod_log_free_eb() argument
609 ret = __tree_mod_log_insert(fs_info, tm_list[i]); in __tree_mod_log_free_eb()
612 rb_erase(&tm_list[j]->node, in __tree_mod_log_free_eb()
626 struct tree_mod_elem **tm_list = NULL; in tree_mod_log_insert_root() local
636 tm_list = kcalloc(nritems, sizeof(struct tree_mod_elem *), in tree_mod_log_insert_root()
638 if (!tm_list) { in tree_mod_log_insert_root()
643 tm_list[i] = alloc_tree_mod_elem(old_root, i, in tree_mod_log_insert_root()
645 if (!tm_list[i]) { in tree_mod_log_insert_root()
667 if (tm_list) in tree_mod_log_insert_root()
668 ret = __tree_mod_log_free_eb(fs_info, tm_list, nritems); in tree_mod_log_insert_root()
675 kfree(tm_list); in tree_mod_log_insert_root()
680 if (tm_list) { in tree_mod_log_insert_root()
682 kfree(tm_list[i]); in tree_mod_log_insert_root()
683 kfree(tm_list); in tree_mod_log_insert_root()
761 struct tree_mod_elem **tm_list = NULL; in tree_mod_log_eb_copy() local
772 tm_list = kcalloc(nr_items * 2, sizeof(struct tree_mod_elem *), in tree_mod_log_eb_copy()
774 if (!tm_list) in tree_mod_log_eb_copy()
777 tm_list_add = tm_list; in tree_mod_log_eb_copy()
778 tm_list_rem = tm_list + nr_items; in tree_mod_log_eb_copy()
809 kfree(tm_list); in tree_mod_log_eb_copy()
815 if (tm_list[i] && !RB_EMPTY_NODE(&tm_list[i]->node)) in tree_mod_log_eb_copy()
816 rb_erase(&tm_list[i]->node, &fs_info->tree_mod_log); in tree_mod_log_eb_copy()
817 kfree(tm_list[i]); in tree_mod_log_eb_copy()
821 kfree(tm_list); in tree_mod_log_eb_copy()
828 struct tree_mod_elem **tm_list = NULL; in tree_mod_log_free_eb() local
840 tm_list = kcalloc(nritems, sizeof(struct tree_mod_elem *), GFP_NOFS); in tree_mod_log_free_eb()
841 if (!tm_list) in tree_mod_log_free_eb()
845 tm_list[i] = alloc_tree_mod_elem(eb, i, in tree_mod_log_free_eb()
847 if (!tm_list[i]) { in tree_mod_log_free_eb()
856 ret = __tree_mod_log_free_eb(eb->fs_info, tm_list, nritems); in tree_mod_log_free_eb()
860 kfree(tm_list); in tree_mod_log_free_eb()
866 kfree(tm_list[i]); in tree_mod_log_free_eb()
867 kfree(tm_list); in tree_mod_log_free_eb()