Lines Matching refs:uuid
14 static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) in btrfs_uuid_to_key() argument
17 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key()
18 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key()
22 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup() argument
44 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup()
82 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument
95 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add()
104 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add()
147 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument
168 btrfs_uuid_to_key(uuid, type, &key); 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
242 ret = btrfs_uuid_tree_remove(trans, uuid, type, subid); in btrfs_uuid_iter_rem()
258 u8 *uuid, u8 type, u64 subvolid) in btrfs_check_uuid_tree_entry() argument
277 if (memcmp(uuid, subvol_root->root_item.uuid, BTRFS_UUID_SIZE)) in btrfs_check_uuid_tree_entry()
281 if (memcmp(uuid, subvol_root->root_item.received_uuid, in btrfs_check_uuid_tree_entry()
343 u8 uuid[BTRFS_UUID_SIZE]; in btrfs_uuid_tree_iterate() local
347 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate()
348 put_unaligned_le64(key.offset, uuid + sizeof(u64)); in btrfs_uuid_tree_iterate()
352 ret = btrfs_check_uuid_tree_entry(fs_info, uuid, in btrfs_uuid_tree_iterate()
358 ret = btrfs_uuid_iter_rem(root, uuid, key.type, in btrfs_uuid_tree_iterate()