Lines Matching refs:uuid_root

26 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, const u8 *uuid,  in btrfs_uuid_tree_lookup()  argument
37 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_lookup()
49 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
64 btrfs_warn(uuid_root->fs_info, in btrfs_uuid_tree_lookup()
90 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_add() local
99 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add()
103 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_add()
116 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
152 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_remove() local
164 if (WARN_ON_ONCE(!uuid_root)) { in btrfs_uuid_tree_remove()
177 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove()
215 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove()
230 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem() argument
237 trans = btrfs_start_transaction(uuid_root, 1); in btrfs_uuid_iter_rem()
294 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate()
459 trans = btrfs_start_transaction(fs_info->uuid_root, 2); in btrfs_uuid_scan_kthread()
533 struct btrfs_root *uuid_root; in btrfs_create_uuid_tree() local
545 uuid_root = btrfs_create_tree(trans, BTRFS_UUID_TREE_OBJECTID); in btrfs_create_uuid_tree()
546 if (IS_ERR(uuid_root)) { in btrfs_create_uuid_tree()
547 ret = PTR_ERR(uuid_root); in btrfs_create_uuid_tree()
553 fs_info->uuid_root = uuid_root; in btrfs_create_uuid_tree()