Lines Matching refs:uuid

18 static void btrfs_uuid_to_key(const u8 *uuid, u8 type, struct btrfs_key *key)  in btrfs_uuid_to_key()  argument
21 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key()
22 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key()
26 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, const u8 *uuid, in btrfs_uuid_tree_lookup() argument
48 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup()
86 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument
99 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add()
108 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add()
148 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument
169 btrfs_uuid_to_key(uuid, type, &key); 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
243 ret = btrfs_uuid_tree_remove(trans, uuid, type, subid); in btrfs_uuid_iter_rem()
259 const u8 *uuid, u8 type, u64 subvolid) in btrfs_check_uuid_tree_entry() argument
278 if (memcmp(uuid, subvol_root->root_item.uuid, BTRFS_UUID_SIZE)) in btrfs_check_uuid_tree_entry()
282 if (memcmp(uuid, subvol_root->root_item.received_uuid, in btrfs_check_uuid_tree_entry()
344 u8 uuid[BTRFS_UUID_SIZE]; in btrfs_uuid_tree_iterate() local
348 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate()
349 put_unaligned_le64(key.offset, uuid + sizeof(u64)); in btrfs_uuid_tree_iterate()
353 ret = btrfs_check_uuid_tree_entry(fs_info, uuid, in btrfs_uuid_tree_iterate()
359 ret = btrfs_uuid_iter_rem(root, uuid, key.type, in btrfs_uuid_tree_iterate()
449 if (!btrfs_is_empty_uuid(root_item.uuid) || in btrfs_uuid_scan_kthread()
470 if (!btrfs_is_empty_uuid(root_item.uuid)) { in btrfs_uuid_scan_kthread()
471 ret = btrfs_uuid_tree_add(trans, root_item.uuid, in btrfs_uuid_scan_kthread()