Lines Matching refs:type
18 static void btrfs_uuid_to_key(const u8 *uuid, u8 type, struct btrfs_key *key) in btrfs_uuid_to_key() argument
20 key->type = type; in btrfs_uuid_to_key()
27 u8 type, u64 subid) 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()
136 ret, key.objectid, key.offset, type); 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
264 if (type != BTRFS_UUID_KEY_SUBVOL && in btrfs_check_uuid_tree_entry()
265 type != BTRFS_UUID_KEY_RECEIVED_SUBVOL) in btrfs_check_uuid_tree_entry()
276 switch (type) { in btrfs_check_uuid_tree_entry()
310 key.type = 0; in btrfs_uuid_tree_iterate()
331 if (key.type != BTRFS_UUID_KEY_SUBVOL && in btrfs_uuid_tree_iterate()
332 key.type != BTRFS_UUID_KEY_RECEIVED_SUBVOL) in btrfs_uuid_tree_iterate()
354 key.type, subid_cpu); in btrfs_uuid_tree_iterate()
359 ret = btrfs_uuid_iter_rem(root, uuid, key.type, in btrfs_uuid_tree_iterate()
415 key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_uuid_scan_kthread()
431 if (key.type != BTRFS_ROOT_ITEM_KEY || in btrfs_uuid_scan_kthread()
504 } else if (key.type < BTRFS_ROOT_ITEM_KEY) { in btrfs_uuid_scan_kthread()
506 key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_uuid_scan_kthread()
509 key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_uuid_scan_kthread()