Searched refs:uuid_root (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/fs/btrfs/
H A Duuid-tree.c34 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, btrfs_uuid_tree_lookup() argument
45 if (WARN_ON_ONCE(!uuid_root)) { btrfs_uuid_tree_lookup()
57 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); btrfs_uuid_tree_lookup()
72 btrfs_warn(uuid_root->fs_info, "uuid item with illegal size %lu!", btrfs_uuid_tree_lookup()
94 struct btrfs_root *uuid_root, u8 *uuid, u8 type, btrfs_uuid_tree_add()
105 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); btrfs_uuid_tree_add()
109 if (WARN_ON_ONCE(!uuid_root)) { btrfs_uuid_tree_add()
122 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, btrfs_uuid_tree_add()
134 btrfs_extend_item(uuid_root, path, sizeof(subid_le)); btrfs_uuid_tree_add()
140 btrfs_warn(uuid_root->fs_info, "insert uuid item failed %d " btrfs_uuid_tree_add()
158 struct btrfs_root *uuid_root, u8 *uuid, u8 type, btrfs_uuid_tree_rem()
172 if (WARN_ON_ONCE(!uuid_root)) { btrfs_uuid_tree_rem()
185 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); btrfs_uuid_tree_rem()
187 btrfs_warn(uuid_root->fs_info, "error %d while searching for uuid item!", btrfs_uuid_tree_rem()
201 btrfs_warn(uuid_root->fs_info, "uuid item with illegal size %lu!", btrfs_uuid_tree_rem()
223 ret = btrfs_del_item(trans, uuid_root, path); btrfs_uuid_tree_rem()
231 btrfs_truncate_item(uuid_root, path, item_size - sizeof(subid), 1); btrfs_uuid_tree_rem()
238 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, btrfs_uuid_iter_rem() argument
245 trans = btrfs_start_transaction(uuid_root, 1); btrfs_uuid_iter_rem()
251 ret = btrfs_uuid_tree_rem(trans, uuid_root, uuid, type, subid); btrfs_uuid_iter_rem()
252 btrfs_end_transaction(trans, uuid_root); btrfs_uuid_iter_rem()
262 struct btrfs_root *root = fs_info->uuid_root; btrfs_uuid_tree_iterate()
93 btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, struct btrfs_root *uuid_root, u8 *uuid, u8 type, u64 subid_cpu) btrfs_uuid_tree_add() argument
157 btrfs_uuid_tree_rem(struct btrfs_trans_handle *trans, struct btrfs_root *uuid_root, u8 *uuid, u8 type, u64 subid) btrfs_uuid_tree_rem() argument
H A Dvolumes.c4048 trans = btrfs_start_transaction(fs_info->uuid_root, 2); btrfs_uuid_scan_kthread()
4059 ret = btrfs_uuid_tree_add(trans, fs_info->uuid_root, btrfs_uuid_scan_kthread()
4071 ret = btrfs_uuid_tree_add(trans, fs_info->uuid_root, btrfs_uuid_scan_kthread()
4084 ret = btrfs_end_transaction(trans, fs_info->uuid_root); btrfs_uuid_scan_kthread()
4109 btrfs_end_transaction(trans, fs_info->uuid_root); btrfs_uuid_scan_kthread()
4186 struct btrfs_root *uuid_root; btrfs_create_uuid_tree() local
4198 uuid_root = btrfs_create_tree(trans, fs_info, btrfs_create_uuid_tree()
4200 if (IS_ERR(uuid_root)) { btrfs_create_uuid_tree()
4201 ret = PTR_ERR(uuid_root); btrfs_create_uuid_tree()
4206 fs_info->uuid_root = uuid_root; btrfs_create_uuid_tree()
H A Ddisk-io.c1666 return fs_info->uuid_root ? fs_info->uuid_root : btrfs_get_fs_root()
2165 free_root_extent_buffers(info->uuid_root); free_root_pointers()
2465 fs_info->uuid_root = root; btrfs_read_roots()
3109 if (!fs_info->uuid_root) { open_ctree()
H A Dioctl.c601 ret = btrfs_uuid_tree_add(trans, root->fs_info->uuid_root, create_subvol()
2499 ret = btrfs_uuid_tree_rem(trans, root->fs_info->uuid_root, btrfs_ioctl_snap_destroy()
2508 ret = btrfs_uuid_tree_rem(trans, root->fs_info->uuid_root, btrfs_ioctl_snap_destroy()
5176 btrfs_uuid_tree_rem(trans, root->fs_info->uuid_root, _btrfs_ioctl_set_received_subvol()
5195 ret = btrfs_uuid_tree_add(trans, root->fs_info->uuid_root, _btrfs_ioctl_set_received_subvol()
H A Dtransaction.c1516 ret = btrfs_uuid_tree_add(trans, fs_info->uuid_root, new_uuid.b, create_pending_snapshot()
1523 ret = btrfs_uuid_tree_add(trans, fs_info->uuid_root, create_pending_snapshot()
H A Dctree.h1431 struct btrfs_root *uuid_root; member in struct:btrfs_fs_info
3739 kfree(fs_info->uuid_root); free_fs_info()
3786 struct btrfs_root *uuid_root, u8 *uuid, u8 type,
3789 struct btrfs_root *uuid_root, u8 *uuid, u8 type,
H A Dsuper.c1730 if (!fs_info->uuid_root) { btrfs_remount()
H A Dextent-tree.c5035 (root == root->fs_info->uuid_root)) get_block_rsv()

Completed in 344 milliseconds