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()
299 u8 uuid[BTRFS_UUID_SIZE]; in btrfs_uuid_tree_iterate() local
303 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate()
304 put_unaligned_le64(key.offset, uuid + sizeof(u64)); in btrfs_uuid_tree_iterate()
308 ret = check_func(fs_info, uuid, key.type, subid_cpu); in btrfs_uuid_tree_iterate()
313 ret = btrfs_uuid_iter_rem(root, uuid, key.type, in btrfs_uuid_tree_iterate()