Lines Matching refs:uuid_root
22 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup() argument
33 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_lookup()
45 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
60 btrfs_warn(uuid_root->fs_info, in btrfs_uuid_tree_lookup()
86 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_add() local
95 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add()
99 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_add()
112 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
151 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_remove() local
163 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_remove()
176 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove()
214 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove()
229 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem() argument
236 trans = btrfs_start_transaction(uuid_root, 1); in btrfs_uuid_iter_rem()
253 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate()