Lines Matching refs:tree_path

56                              struct block_tree_path* tree_path,
203 struct block_tree_path tree_path; in file_block_map_update() local
219 found = file_tree_lookup(&block_mac, tr, &tr->files_added, &tree_path, in file_block_map_update()
222 found = file_tree_lookup(&block_mac, tr, &tr->fs->files, &tree_path, in file_block_map_update()
276 assert(!file_tree_lookup(NULL, tr, &tr->files_added, &tree_path, in file_block_map_update()
280 block_tree_walk(tr, &tr->files_updated, old_block, false, &tree_path); in file_block_map_update()
285 assert(block_tree_path_get_key(&tree_path) == old_block); in file_block_map_update()
286 block_mac = block_tree_path_get_data_block_mac(&tree_path); in file_block_map_update()
324 block_tree_path_put_dirty(tr, &tree_path, tree_path.count, in file_block_map_update()
327 file->block_mac = tree_path.entry[tree_path.count].block_mac; in file_block_map_update()
649 struct block_tree_path* tree_path, in file_tree_lookup() argument
661 block_tree_walk(tr, tree, hash - 1, false, tree_path); in file_tree_lookup()
662 while (block_tree_path_get_key(tree_path) && in file_tree_lookup()
663 block_tree_path_get_key(tree_path) < hash) { in file_tree_lookup()
664 block_tree_path_next(tree_path); in file_tree_lookup()
666 while (block_tree_path_get_key(tree_path) == hash) { in file_tree_lookup()
667 block_mac = block_tree_path_get_data_block_mac(tree_path); in file_tree_lookup()
672 block_tree_path_get_key(tree_path), file_path, hash); in file_tree_lookup()
675 block_tree_path_next(tree_path); in file_tree_lookup()
676 block_mac = block_tree_path_get_data_block_mac(tree_path); in file_tree_lookup()
679 block_tree_path_get_key(tree_path)); in file_tree_lookup()
711 block_tree_path_next(tree_path); in file_tree_lookup()
715 __func__, hash, block_tree_path_get_key(tree_path)); in file_tree_lookup()
783 struct block_tree_path tree_path; in file_is_removed() local
785 block_tree_walk(tr, &tr->files_removed, block, false, &tree_path); in file_is_removed()
787 return block_tree_path_get_key(&tree_path) == block; in file_is_removed()
802 struct block_tree_path tree_path; in file_check_updated() local
805 block_tree_walk(tr, &tr->files_updated, block, false, &tree_path); in file_check_updated()
806 if (block_tree_path_get_key(&tree_path) == block) { in file_check_updated()
810 block, block_tree_path_get_data(&tree_path)); in file_check_updated()
811 *block_mac_out = block_tree_path_get_data_block_mac(&tree_path); in file_check_updated()
836 struct block_tree_path* tree_path, in file_lookup_not_removed() argument
841 found = file_tree_lookup(&block_mac, tr, &tr->fs->files, tree_path, in file_lookup_not_removed()
855 false, tree_path); in file_lookup_not_removed()
856 if (block_tree_path_get_key(tree_path) == in file_lookup_not_removed()
862 block_tree_path_get_data(tree_path)); in file_lookup_not_removed()
863 block_mac = block_tree_path_get_data_block_mac(tree_path); in file_lookup_not_removed()
918 struct block_tree_path tree_path; in file_iterate() local
934 block_tree_walk(tr, tree, 0, true, &tree_path); in file_iterate()
936 found = file_tree_lookup(&block_mac, tr, tree, &tree_path, start_path, in file_iterate()
941 block_tree_path_next(&tree_path); in file_iterate()
947 while (block_tree_path_get_key(&tree_path)) { in file_iterate()
948 block_mac = block_tree_path_get_data_block_mac(&tree_path); in file_iterate()
965 block_tree_path_next(&tree_path); in file_iterate()
994 struct block_tree_path tree_path; in file_open() local
1007 found = file_tree_lookup(&block_mac, tr, &tr->files_added, &tree_path, path, in file_open()
1014 &tree_path, path); in file_open()
1092 struct block_tree_path tree_path; in file_delete() local
1103 found = file_tree_lookup(&block_mac, tr, &tr->files_added, &tree_path, path, in file_delete()
1108 &tree_path, path); in file_delete()
1184 struct block_tree_path tree_path; in file_move() local
1194 dest_found = file_tree_lookup(&block_mac, tr, &tr->files_added, &tree_path, in file_move()
1198 tr, &tree_path, dest_path); in file_move()
1427 struct block_tree_path tree_path; in file_transaction_complete() local
1437 block_tree_walk(tr, &tr->files_updated, 0, true, &tree_path); in file_transaction_complete()
1439 file = block_tree_path_get_data_block_mac(&tree_path); in file_transaction_complete()
1450 block_mac_set_block(tr, &old_file, block_tree_path_get_key(&tree_path)); in file_transaction_complete()
1477 block_tree_path_next(&tree_path); in file_transaction_complete()
1480 block_tree_walk(tr, &tr->files_removed, 0, true, &tree_path); in file_transaction_complete()
1482 file = block_tree_path_get_data_block_mac(&tree_path); in file_transaction_complete()
1511 block_tree_path_next(&tree_path); in file_transaction_complete()
1513 block_tree_walk(tr, &tr->files_added, 0, true, &tree_path); in file_transaction_complete()
1515 file = block_tree_path_get_data_block_mac(&tree_path); in file_transaction_complete()
1557 block_tree_path_next(&tree_path); in file_transaction_complete()