Lines Matching refs:uuid
26 static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) in btrfs_uuid_to_key() argument
29 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key()
30 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key()
34 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup() argument
56 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup()
94 struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument
105 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add()
114 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add()
158 struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_tree_rem() argument
177 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_rem()
238 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem() argument
251 ret = btrfs_uuid_tree_rem(trans, uuid_root, uuid, type, subid); in btrfs_uuid_iter_rem()
307 u8 uuid[BTRFS_UUID_SIZE]; in btrfs_uuid_tree_iterate() local
311 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate()
312 put_unaligned_le64(key.offset, uuid + sizeof(u64)); in btrfs_uuid_tree_iterate()
316 ret = check_func(fs_info, uuid, key.type, subid_cpu); in btrfs_uuid_tree_iterate()
321 ret = btrfs_uuid_iter_rem(root, uuid, key.type, in btrfs_uuid_tree_iterate()