Lines Matching refs:uuid_root
25 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup() argument
36 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_lookup()
48 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
63 btrfs_warn(uuid_root->fs_info, in btrfs_uuid_tree_lookup()
89 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_add() local
98 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add()
102 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_add()
115 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
153 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_remove() local
165 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_remove()
178 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove()
216 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove()
231 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem() argument
238 trans = btrfs_start_transaction(uuid_root, 1); in btrfs_uuid_iter_rem()
295 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate()